]> err.no Git - sope/blob - sope-gdl1/GDLContentStore/GNUmakefile.preamble
fixed some NGMail framework build issue
[sope] / sope-gdl1 / GDLContentStore / GNUmakefile.preamble
1 # compilation settings
2
3 SOPE_ROOT=../..
4
5 ADDITIONAL_CPPFLAGS += -Wall
6
7 ADDITIONAL_INCLUDE_DIRS += -I. -I..
8
9
10 # dependencies
11
12 libGDLContentStore_LIBRARIES_DEPEND_UPON += \
13         -lGDLAccess                     \
14         -lNGExtensions -lEOControl      \
15         -lDOM -lSaxObjC
16
17 GDLContentStore_LIBRARIES_DEPEND_UPON += \
18         -framework GDLAccess    \
19         -framework NGExtensions -framework EOControl \
20         -framework DOM -framework SaxObjC
21
22 ifneq ($(frameworks),yes)
23 GCS_TOOL_LIBS += \
24         -lGDLContentStore -lGDLAccess   \
25         -lNGExtensions -lEOControl      \
26         -lDOM -lSaxObjC
27 else
28 GCS_TOOL_LIBS += \
29         -framework GDLContentStore -framework GDLAccess \
30         -framework NGExtensions -framework EOControl    \
31         -framework DOM -framework SaxObjC
32 endif
33
34 gcs_ls_TOOL_LIBS            += $(GCS_TOOL_LIBS)
35 gcs_mkdir_TOOL_LIBS         += $(GCS_TOOL_LIBS)
36 gcs_cat_TOOL_LIBS           += $(GCS_TOOL_LIBS)
37 gcs_recreatequick_TOOL_LIBS += $(GCS_TOOL_LIBS)
38 gcs_gensql_TOOL_LIBS        += $(GCS_TOOL_LIBS)
39
40 gcs_ls_PCH_FILE            += common.h
41 gcs_mkdir_PCH_FILE         += common.h
42 gcs_cat_PCH_FILE           += common.h
43 gcs_recreatequick_PCH_FILE += common.h
44 gcs_gensql_PCH_FILE        += common.h
45
46
47 # library/framework search pathes
48
49 DEP_DIRS = \
50         .               \
51         ../GDLAccess    \
52         $(SOPE_ROOT)/sope-core/NGExtensions     \
53         $(SOPE_ROOT)/sope-core/EOControl        \
54         $(SOPE_ROOT)/sope-xml/DOM               \
55         $(SOPE_ROOT)/sope-xml/SaxObjC
56
57 ifneq ($(frameworks),yes)
58 ADDITIONAL_LIB_DIRS += \
59         $(foreach dir,$(DEP_DIRS),\
60           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
61 else
62 ADDITIONAL_LIB_DIRS += \
63         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
64 endif
65
66 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
67
68
69 # platform specific settings
70
71 ifeq ($(FOUNDATION_LIB),apple)
72 libGDLContentStore_PREBIND_ADDR="0xC7700000"
73 libGDLContentStore_LDFLAGS += -seg1addr $(libGDLContentStore_PREBIND_ADDR)
74 endif
75
76 ifeq ($(findstring openbsd3, $(GNUSTEP_HOST_OS)), openbsd3)
77 GCS_TOOL_LIBS += -liconv
78 endif