2012-12-09 07:12:57 -05:00
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += staticlib
|
|
|
|
CONFIG -= qt
|
|
|
|
TARGET = pegmarkdown
|
|
|
|
|
2012-12-10 13:58:02 -05:00
|
|
|
QMAKE_CFLAGS *= -Wall -ansi -D_GNU_SOURCE
|
|
|
|
QMAKE_CC = gcc
|
2012-12-09 07:12:57 -05:00
|
|
|
|
|
|
|
#CONFIG += debug
|
|
|
|
debug {
|
2012-12-10 13:58:02 -05:00
|
|
|
QMAKE_CFLAGS -= -O2
|
|
|
|
QMAKE_CFLAGS *= -g
|
2012-12-09 07:12:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# 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
|
|
|
|
}
|
|
|
|
|
|
|
|
################################# MacOSX ##########################################
|
|
|
|
|
|
|
|
mac {
|
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
DESTDIR = lib
|
|
|
|
|
|
|
|
CONFIG += dummy_glib
|
|
|
|
}
|
|
|
|
|
|
|
|
################################# FreeBSD ##########################################
|
|
|
|
|
|
|
|
freebsd-* {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|