]> err.no Git - sope/blob - sope-ical/samples/GNUmakefile.preamble
added PCH support
[sope] / sope-ical / samples / GNUmakefile.preamble
1 # compilation flags
2
3 SOPE_ROOT=../..
4 SOPE_CORE="../../sope-core"
5 SOPE_XML="../../sope-xml"
6
7 ADDITIONAL_INCLUDE_DIRS += \
8         -I..                    \
9         -I$(SOPE_CORE)/NGStreams        \
10         -I$(SOPE_CORE)/NGExtensions     \
11
12
13 # PCH
14
15 icalparsetest_PCH_FILE = common.h
16 icalds_PCH_FILE        = common.h
17 vcf2xml_PCH_FILE       = common.h
18 vcfparsetest_PCH_FILE  = common.h
19
20
21 # dependencies
22
23 ifneq ($(frameworks),yes)
24 icalparsetest_TOOL_LIBS += -lNGiCal
25 icalds_TOOL_LIBS        += -lNGiCal
26 vcfparsetest_TOOL_LIBS  += -lNGiCal
27
28 ADDITIONAL_TOOL_LIBS += \
29         -lNGStreams -lNGExtensions -lEOControl  \
30         -lDOM -lSaxObjC
31 else
32 icalparsetest_TOOL_LIBS += -framework NGiCal
33 icalds_TOOL_LIBS        += -framework NGiCal
34 vcfparsetest_TOOL_LIBS  += -framework NGiCal
35
36 ADDITIONAL_TOOL_LIBS += \
37         -framework NGStreams -framework NGExtensions -framework EOControl \
38         -framework DOM -framework SaxObjC
39 endif
40
41
42 # library/framework search pathes
43
44 DEP_DIRS = \
45         ../NGiCal/ \
46         $(SOPE_ROOT)/sope-core/NGExtensions     \
47         $(SOPE_ROOT)/sope-core/NGStreams        \
48         $(SOPE_ROOT)/sope-core/EOControl        \
49         $(SOPE_ROOT)/sope-xml/DOM               \
50         $(SOPE_ROOT)/sope-xml/SaxObjC
51
52 ifneq ($(frameworks),yes)
53 ADDITIONAL_LIB_DIRS += \
54         $(foreach dir,$(DEP_DIRS),\
55           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
56 else
57 ADDITIONAL_LIB_DIRS += \
58         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
59 endif
60
61 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib