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