3 ADDITIONAL_CPPFLAGS += -Wall -DCOMPILE_FOR_GSTEP_MAKE=1
4 ADDITIONAL_OBJCFLAGS += -Wall -Wno-import -Wno-protocol
7 CORE_ROOT=$(SOPE_ROOT)/sope-core
9 ifeq ($(FOUNDATION_LIB),apple)
10 SoOFS_INSTALL_DIR = /Library/Frameworks/
13 ADDITIONAL_INCLUDE_DIRS += \
18 -I$(CORE_ROOT)/NGStreams/ \
19 -I$(CORE_ROOT)/NGExtensions \
20 -I$(SOPE_ROOT)/sope-xml
23 ifneq ($(frameworks),yes)
25 libSoOFS_LIBRARIES_DEPEND_UPON += \
27 -lNGMime -lNGStreams -lNGExtensions -lEOControl \
28 -lXmlRpc -lDOM -lSaxObjC
30 $(SOPED_NAME)_TOOL_LIBS += \
32 -lNGMime -lNGStreams -lNGExtensions -lEOControl \
33 -lXmlRpc -lDOM -lSaxObjC
35 SoOFS_WOBUNDLE_LIBS += \
39 -lNGStreams -lNGExtensions -lEOControl \
40 -lXmlRpc -lDOM -lSaxObjC
41 SoOFS_BUNDLE_LIBS += $(SoOFS_WOBUNDLE_LIBS)
45 SoOFS_LIBRARIES_DEPEND_UPON += \
48 -framework NGStreams -framework NGExtensions -framework EOControl \
49 -framework XmlRpc -framework DOM -framework SaxObjC
51 $(SOPED_NAME)_TOOL_LIBS += \
52 -framework SoOFS -framework NGObjWeb \
54 -framework NGStreams -framework NGExtensions -framework EOControl \
55 -framework XmlRpc -framework DOM -framework SaxObjC
60 # library/framework search pathes
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
72 ifneq ($(frameworks),yes)
73 ADDITIONAL_LIB_DIRS += \
74 $(foreach dir,$(DEP_DIRS),\
75 -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
77 ADDITIONAL_LIB_DIRS += \
78 $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
81 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
85 # platform specific settings
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
95 ifeq ($(findstring openbsd3, $(GNUSTEP_TARGET_OS)), openbsd3)
96 $(SOPED_NAME)_TOOL_LIBS += -liconv