]> err.no Git - sope/blob - sope-appserver/SoOFS/GNUmakefile.preamble
fixed some NGMail framework build issue
[sope] / sope-appserver / SoOFS / GNUmakefile.preamble
1 # compilation settings
2
3 # TODO: need to fix COMPILE_FOR_GSTEP_MAKE?
4 ADDITIONAL_CPPFLAGS  += -Wall -DCOMPILE_FOR_GSTEP_MAKE=1
5 ADDITIONAL_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
6
7 SOPE_ROOT=../..
8 CORE_ROOT=$(SOPE_ROOT)/sope-core
9
10 ADDITIONAL_INCLUDE_DIRS += \
11         -I.                     \
12         -I..                    \
13         -I../NGObjWeb           \
14         -I$(CORE_ROOT)          \
15         -I$(CORE_ROOT)/NGStreams/       \
16         -I$(CORE_ROOT)/NGExtensions     \
17         -I$(SOPE_ROOT)/sope-xml
18
19
20 ifneq ($(frameworks),yes)
21
22 libSoOFS_LIBRARIES_DEPEND_UPON += \
23         -lNGObjWeb \
24         -lNGMime -lNGStreams -lNGExtensions -lEOControl \
25         -lXmlRpc -lDOM -lSaxObjC
26
27 $(SOPED_NAME)_TOOL_LIBS += \
28         -lSoOFS -lNGObjWeb \
29         -lNGMime -lNGStreams -lNGExtensions -lEOControl \
30         -lXmlRpc -lDOM -lSaxObjC
31
32 SoOFS_WOBUNDLE_LIBS += \
33         -lSoOFS         \
34         -lNGObjWeb      \
35         -lNGMime        \
36         -lNGStreams -lNGExtensions -lEOControl \
37         -lXmlRpc -lDOM -lSaxObjC
38 SoOFS_BUNDLE_LIBS   += $(SoOFS_WOBUNDLE_LIBS)
39
40 else
41
42 SoOFS_LIBRARIES_DEPEND_UPON += \
43         -framework NGObjWeb \
44         -framework NGMime -framework NGMail \
45         -framework NGStreams -framework NGExtensions -framework EOControl \
46         -framework XmlRpc -framework DOM -framework SaxObjC
47
48 $(SOPED_NAME)_TOOL_LIBS += \
49         -framework SoOFS -framework NGObjWeb \
50         -framework NGMime -framework NGMail \
51         -framework NGStreams -framework NGExtensions -framework EOControl \
52         -framework XmlRpc -framework DOM -framework SaxObjC
53
54 endif
55
56
57 # library/framework search pathes
58
59 DEP_DIRS = \
60         . ../NGObjWeb \
61         $(SOPE_ROOT)/sope-mime                  \
62         $(SOPE_ROOT)/sope-mime/NGMail           \
63         $(SOPE_ROOT)/sope-core/NGStreams        \
64         $(SOPE_ROOT)/sope-core/NGExtensions     \
65         $(SOPE_ROOT)/sope-core/EOControl        \
66         $(SOPE_ROOT)/sope-xml/DOM               \
67         $(SOPE_ROOT)/sope-xml/XmlRpc            \
68         $(SOPE_ROOT)/sope-xml/SaxObjC
69
70 ifneq ($(frameworks),yes)
71 ADDITIONAL_LIB_DIRS += \
72         $(foreach dir,$(DEP_DIRS),\
73           -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
74 else
75 ADDITIONAL_LIB_DIRS += \
76         $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
77 endif
78
79 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
80
81
82
83 # platform specific settings
84
85 ifneq ($(findstring openbsd3, $(GNUSTEP_TARGET_OS)), openbsd3)
86 # OpenBSD does not require libcrypt
87 ifneq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
88 # and neither does MacOSX? ...
89 sope_TOOL_LIBS += -lcrypt
90 endif
91 endif
92
93 ifeq ($(findstring openbsd3, $(GNUSTEP_TARGET_OS)), openbsd3)
94 $(SOPED_NAME)_TOOL_LIBS += -liconv
95 endif