2012-12-09 07:12:57 -05:00
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += staticlib
|
2015-09-04 16:05:00 -04:00
|
|
|
CONFIG += create_prl
|
2012-12-09 07:12:57 -05:00
|
|
|
CONFIG -= qt
|
|
|
|
TARGET = pegmarkdown
|
2015-09-05 17:49:15 -04:00
|
|
|
DESTDIR = lib
|
2012-12-09 07:12:57 -05:00
|
|
|
|
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-* {
|
2015-09-05 17:48:24 -04:00
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
|
|
|
|
PKGCONFIG *= glib-2.0
|
2012-12-09 07:12:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# Switch on extra warnings
|
|
|
|
QMAKE_CFLAGS += -Wextra
|
|
|
|
|
|
|
|
# Switch off optimization for release version
|
|
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
|
|
|
|
|
|
|
CONFIG += dummy_glib
|
2013-10-07 19:11:10 -04:00
|
|
|
|
|
|
|
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
|
2012-12-09 07:12:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
################################# MacOSX ##########################################
|
|
|
|
|
|
|
|
mac {
|
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
|
|
|
|
CONFIG += dummy_glib
|
|
|
|
}
|
|
|
|
|
|
|
|
################################# FreeBSD ##########################################
|
|
|
|
|
|
|
|
freebsd-* {
|
|
|
|
}
|
|
|
|
|
2013-08-26 13:38:51 -04:00
|
|
|
################################# OpenBSD ##########################################
|
|
|
|
|
|
|
|
openbsd-* {
|
|
|
|
}
|
|
|
|
|
2012-12-09 07:12:57 -05:00
|
|
|
################################### 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
|
|
|
|
}
|
|
|
|
|