mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
13e7ac8b43
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
99 lines
1.9 KiB
Prolog
99 lines
1.9 KiB
Prolog
TEMPLATE = lib
|
|
CONFIG += staticlib
|
|
CONFIG -= qt
|
|
TARGET = pegmarkdown
|
|
|
|
QMAKE_CFLAGS *= -Wall -ansi -D_GNU_SOURCE
|
|
QMAKE_CC = gcc
|
|
|
|
#CONFIG += debug
|
|
debug {
|
|
QMAKE_CFLAGS -= -O2
|
|
QMAKE_CFLAGS *= -g
|
|
}
|
|
|
|
################################# Linux ##########################################
|
|
linux-* {
|
|
DESTDIR = lib
|
|
}
|
|
|
|
linux-g++ {
|
|
OBJECTS_DIR = temp/linux-g++/obj
|
|
}
|
|
|
|
linux-g++-64 {
|
|
OBJECTS_DIR = temp/linux-g++-64/obj
|
|
}
|
|
|
|
################################# Windows ##########################################
|
|
|
|
win32 {
|
|
OBJECTS_DIR = temp/obj
|
|
MOC_DIR = temp/moc
|
|
DESTDIR = lib
|
|
|
|
# Switch on extra warnings
|
|
QMAKE_CFLAGS += -Wextra
|
|
|
|
# Switch off optimization for release version
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
|
|
|
CONFIG += dummy_glib
|
|
|
|
DEFINES *= _USE_32BIT_TIME_T
|
|
|
|
# With GCC package 4.8, including io.h either directly or indirectly causes off64_t not to be defined when compiling with -ansi switch
|
|
DEFINES *= off64_t=_off64_t
|
|
DEFINES *= off_t=_off_t
|
|
}
|
|
|
|
################################# MacOSX ##########################################
|
|
|
|
mac {
|
|
OBJECTS_DIR = temp/obj
|
|
MOC_DIR = temp/moc
|
|
DESTDIR = lib
|
|
|
|
CONFIG += dummy_glib
|
|
}
|
|
|
|
################################# FreeBSD ##########################################
|
|
|
|
freebsd-* {
|
|
DESTDIR = lib
|
|
}
|
|
|
|
################################# OpenBSD ##########################################
|
|
|
|
openbsd-* {
|
|
DESTDIR = lib
|
|
}
|
|
|
|
################################### COMMON stuff ##################################
|
|
################################### COMMON stuff ##################################
|
|
|
|
#DEPENDPATH += . \
|
|
INCLUDEPATH += . \
|
|
|
|
HEADERS += \
|
|
markdown_lib.h \
|
|
markdown_peg.h \
|
|
odf.h \
|
|
parsing_functions.h \
|
|
utility_functions.h \
|
|
|
|
SOURCES += \
|
|
markdown_lib.c \
|
|
markdown_parser.c \
|
|
parsing_functions.c \
|
|
markdown_output.c \
|
|
odf.c \
|
|
utility_functions.c \
|
|
|
|
dummy_glib {
|
|
HEADERS += GLibFacade.h
|
|
SOURCES += GLibFacade.c
|
|
}
|
|
|