]> err.no Git - sope/blob - sope-ical/NGiCal/GNUmakefile.preamble
fixed b0rked Xcode project files
[sope] / sope-ical / NGiCal / GNUmakefile.preamble
1 # compilation settings
2
3 SOPE_ROOT=../..
4
5 ADDITIONAL_CPPFLAGS += \
6         -Wall -DCOMPILE_FOR_GSTEP_MAKE=1        \
7         -DSOPE_MAJOR_VERSION=$(MAJOR_VERSION)   \
8         -DSOPE_MINOR_VERSION=$(MINOR_VERSION)   \
9         -DSOPE_SUBMINOR_VERSION=$(SUBMINOR_VERSION)
10
11 ADDITIONAL_INCLUDE_DIRS += \
12         -I. -I..                        \
13         -I$(SOPE_ROOT)/sope-core/NGExtensions/  \
14         -I$(SOPE_ROOT)/sope-core                \
15         -I$(SOPE_ROOT)/sope-xml
16
17
18 # dependencies
19
20 libNGiCal_LIBRARIES_DEPEND_UPON += \
21         -lNGExtensions  \
22         -lEOControl     \
23         -lDOM           \
24         -lSaxObjC
25
26 NGiCal_LIBRARIES_DEPEND_UPON += \
27         -framework NGExtensions -framework EOControl \
28         -framework DOM -framework SaxObjC
29
30
31 # library/framework search pathes
32
33 DEP_DIRS = \
34         $(SOPE_ROOT)/sope-core/NGExtensions     \
35         $(SOPE_ROOT)/sope-core/EOControl        \
36         $(SOPE_ROOT)/sope-xml/DOM               \
37         $(SOPE_ROOT)/sope-xml/SaxObjC
38
39 ifneq ($(frameworks),yes)
40 ADDITIONAL_LIB_DIRS += \
41         $(foreach dir,$(DEP_DIRS),\
42           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
43 else
44 ADDITIONAL_LIB_DIRS += \
45         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
46 endif
47
48 ifeq ($(findstring _64, $(GNUSTEP_TARGET_CPU)), _64)
49 SYSTEM_LIB_DIR += -L/usr/local/lib64 -L/usr/lib64
50 else
51 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
52 endif
53
54
55 # Apple
56
57 ifeq ($(FOUNDATION_LIB),apple)
58 libNGiCal_PREBIND_ADDR="0xC1E00000"
59 libNGiCal_LDFLAGS += -seg1addr $(libNGiCal_PREBIND_ADDR)
60 NGiCal_LDFLAGS += -seg1addr $(libNGiCal_PREBIND_ADDR)
61 endif