]> err.no Git - sope/blob - sope-ical/versitSaxDriver/GNUmakefile.preamble
changed "Wrapper" buildstyle to produce universal (fat) binaries by default. Also...
[sope] / sope-ical / versitSaxDriver / GNUmakefile.preamble
1 # compilation settings
2
3 SOPE_ROOT=../..
4 SOPE_OBJ_ROOT=$(GNUSTEP_BUILD_DIR)/$(SOPE_ROOT)
5
6 ifeq ($(frameworks),yes)
7 # hm, we might prefer /Library/SaxDrivers-$(MAJOR_VERSION).$(MINOR_VERSION)/
8 # but this is harder with the FRAMEWORK_INSTALL_DIR
9 BUNDLE_INSTALL_DIR := $(FRAMEWORK_INSTALL_DIR)/SaxObjC.framework/Versions/A/Resources/SaxDrivers/
10 endif
11
12
13 ADDITIONAL_INCLUDE_DIRS +=                      \
14         -I$(SOPE_ROOT)/sope-xml                 \
15         -I$(SOPE_ROOT)/sope-core/NGExtensions
16
17
18 # dependencies
19
20 ifneq ($(frameworks),yes)
21 BUNDLE_LIBS += -lSaxObjC
22 else
23 BUNDLE_LIBS += -framework SaxObjC
24 endif
25 ADDITIONAL_BUNDLE_LIBS += $(BUNDLE_LIBS)
26
27
28 # library/framework search pathes
29
30 DEP_DIRS = \
31         $(SOPE_ROOT)/sope-core/NGExtensions     \
32         $(SOPE_ROOT)/sope-xml/SaxObjC
33
34 ifneq ($(frameworks),yes)
35 ADDITIONAL_LIB_DIRS += \
36         $(foreach dir,$(DEP_DIRS),\
37           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
38 else
39 ADDITIONAL_LIB_DIRS += \
40         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
41 endif
42
43 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib