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
|
|
|
|
|
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
|
2015-09-04 16:05:00 -04:00
|
|
|
LIBS *= -lglib-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
|
|
|
|
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
|
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
|
|
|
|
DESTDIR = lib
|
|
|
|
|
|
|
|
CONFIG += dummy_glib
|
|
|
|
}
|
|
|
|
|
|
|
|
################################# FreeBSD ##########################################
|
|
|
|
|
|
|
|
freebsd-* {
|
|
|
|
DESTDIR = lib
|
|
|
|
}
|
|
|
|
|
2013-08-26 13:38:51 -04:00
|
|
|
################################# OpenBSD ##########################################
|
|
|
|
|
|
|
|
openbsd-* {
|
|
|
|
DESTDIR = lib
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|