ADDITIONAL_CPPFLAGS += -Wall
ADDITIONAL_INCLUDE_DIRS += \
- -I.. -I../.. \
+ -I.. -I$(SOPE_ROOT) \
-I../NGObjWeb \
- -I../../sope-core/NGStreams \
- -I../../sope-core/NGExtensions \
- -I../../sope-core \
- -I../../sope-xml
+ -I$(SOPE_ROOT)/sope-core/NGStreams \
+ -I$(SOPE_ROOT)/sope-core/NGExtensions \
+ -I$(SOPE_ROOT)/sope-core \
+ -I$(SOPE_ROOT)/sope-xml
libWOExtensions_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
# compile settings
-APPSERVER=".."
+SOPE_ROOT=../../..
+APPSERVER="../.."
-WOxExtTest_TOOL_LIBS += \
- -lWEExtensions -lWOExtensions \
- -lNGObjWeb \
- -lEOControl \
- -lXmlRpc -lDOM -lSaxObjC
+ADDITIONAL_CPPFLAGS += -Wall
-WOxExtTest_LIB_DIRS += \
- -L$(APPSERVER)/WEExtensions/$(GNUSTEP_OBJ_DIR) \
- -L$(APPSERVER)/WOExtensions/$(GNUSTEP_OBJ_DIR) \
- -L$(APPSERVER)/NGObjWeb/$(GNUSTEP_OBJ_DIR) \
-ADDITIONAL_CPPFLAGS += -Wall
+# dependencies
+
+ifneq ($(frameworks),yes)
+WOxExtTest_TOOL_LIBS += -lWEExtensions -lWOExtensions
+else
+WOxExtTest_TOOL_LIBS += -framework WEExtensions -framework WOExtensions
+endif
+
+# library/framework search pathes
+
+DEP_DIRS = \
+ $(APPSERVER)/WOExtensions \
+ $(APPSERVER)/WEExtensions \
+ $(APPSERVER)/NGObjWeb \
+ $(SOPE_ROOT)/sope-mime \
+ $(SOPE_ROOT)/sope-core/NGStreams \
+ $(SOPE_ROOT)/sope-core/NGExtensions \
+ $(SOPE_ROOT)/sope-core/EOControl \
+ $(SOPE_ROOT)/sope-xml/DOM \
+ $(SOPE_ROOT)/sope-xml/XmlRpc \
+ $(SOPE_ROOT)/sope-xml/SaxObjC
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
+else
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
+endif
-ADDITIONAL_LIB_DIRS += -L/usr/local/lib -L/usr/lib
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib