]> err.no Git - sope/commitdiff
added OSX framework support
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 9 Aug 2005 21:31:27 +0000 (21:31 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 9 Aug 2005 21:31:27 +0000 (21:31 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1018 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/ChangeLog
sope-xml/DOM/GNUmakefile
sope-xml/DOM/GNUmakefile.preamble
sope-xml/GNUmakefile
sope-xml/SaxObjC/GNUmakefile
sope-xml/SaxObjC/GNUmakefile.preamble
sope-xml/XmlRpc/GNUmakefile
sope-xml/XmlRpc/GNUmakefile.preamble
sope-xml/samples/GNUmakefile.preamble

index e857d6dc40646fa3a39bf92fdfde7c3a40b9532f..7150bc4fee2601255999400f383e072192023aef 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-09  Helge Hess  <helge.hess@opengroupware.org>
+
+       * all makefiles: added flags to build only frameworks on MacOSX
+
 2004-10-17  Helge Hess  <helge.hess@opengroupware.org>
 
        * all makefiles: include config.make if available
index 73e4a0574debd56b91352467434c6d2217cb9042..8c5699978f41f0b18963952ea405ec688d30a3f5 100644 (file)
@@ -3,8 +3,11 @@
 -include ../../config.make
 include ../common.make
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME   = libDOM
+else
 FRAMEWORK_NAME = DOM
+endif
 
 libDOM_HEADER_FILES_DIR         = .
 libDOM_HEADER_FILES_INSTALL_DIR = /DOM
@@ -93,13 +96,15 @@ libDOM_OBJC_FILES = \
        $(DOM_CORE_OBJC_FILES)          \
        $(DOM_TRAVERSAL_OBJC_FILES)     \
 
+# framework support
 DOM_HEADER_FILES = $(libDOM_HEADER_FILES)
 DOM_OBJC_FILES   = $(libDOM_OBJC_FILES)
 
+
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
-
-ifeq ($(FOUNDATION_LIB),apple)
+else
 include $(GNUSTEP_MAKEFILES)/framework.make
 endif
 -include GNUmakefile.postamble
index 5c027fd244d31bcaec7803bb4d3fbf8cf54f2caf..ca22d697505487e1281d1cfc69e9794a6c243598 100644 (file)
@@ -1,15 +1,22 @@
 # compilation settings
 
+ifeq ($(FOUNDATION_LIB),apple)
+DOM_INSTALL_DIR = /Library/Frameworks/
+endif
+
 ADDITIONAL_INCLUDE_DIRS += -I.. -I../..
 
 libDOM_LIBRARIES_DEPEND_UPON += -lSaxObjC
 
 ifneq ($(GNUSTEP_BUILD_DIR),)
 libDOM_LIB_DIRS += -L$(GNUSTEP_BUILD_DIR)/../SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+DOM_LIB_DIRS += -F$(GNUSTEP_BUILD_DIR)/../SaxObjC/
 else
 libDOM_LIB_DIRS += -L../SaxObjC/$(GNUSTEP_OBJ_DIR)
+DOM_LIB_DIRS += -F../SaxObjC/
 endif
 
+
 # Apple
 
 ifeq ($(FOUNDATION_LIB),apple)
index 7a0a94b2bc3b166e90114c7c08b6ec5b06389f65..4658864254c015dcc05f835a1b54bdc236dcde26 100644 (file)
@@ -9,12 +9,17 @@ VERSION=4.5.0
 SUBPROJECTS = \
        SaxObjC         \
        DOM             \
-       STXSaxDriver    \
        XmlRpc          \
        samples
 
+ifneq ($(frameworks),yes)
+
+SUBPROJECTS += STXSaxDriver
+
 ifeq ($(HAS_LIBRARY_xml2),yes)
 SUBPROJECTS += libxmlSAXDriver
 endif
 
+endif
+
 include $(GNUSTEP_MAKEFILES)/aggregate.make
index 69ecf8d6f0c49be6ebab8f2b6d5e4d5614d666a9..b55859d5a9846eb1c88506ea2bfbc44d1abf55c0 100644 (file)
@@ -3,8 +3,11 @@
 -include ../../config.make
 include ../common.make
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME   = libSaxObjC
+else
 FRAMEWORK_NAME = SaxObjC
+endif
 
 libSaxObjC_DLL_DEF      = libSaxObjC.def
 libSaxObjC_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
@@ -57,10 +60,9 @@ SaxObjC_OBJC_FILES   = $(libSaxObjC_OBJC_FILES)
 # flags
 
 -include GNUmakefile.preamble
-
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
-
-ifeq ($(FOUNDATION_LIB),apple)
+else
 include $(GNUSTEP_MAKEFILES)/framework.make
 endif
 -include GNUmakefile.postamble
index a662ef0083946792d973bb4f53a7b7414b387066..c118ea3172198dd7a43ebe353727b4822c4c2b15 100644 (file)
@@ -1,5 +1,9 @@
 # compilation settings
 
+ifeq ($(FOUNDATION_LIB),apple)
+SaxObjC_INSTALL_DIR = /Library/Frameworks/
+endif
+
 ADDITIONAL_CPPFLAGS += \
         -Wall -DCOMPILE_FOR_GSTEP_MAKE=1        \
         -DSOPE_MAJOR_VERSION=$(MAJOR_VERSION)   \
index 6283f8a7734e43749bee01f6a1e1dc07fa5cda67..e623ec3c632e12ab1af71e3fac4bfb59cc1f8eea 100644 (file)
@@ -3,8 +3,11 @@
 -include ../../config.make
 include ../common.make
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME   = libXmlRpc
+else
 FRAMEWORK_NAME = XmlRpc
+endif
 
 libXmlRpc_HEADER_FILES_DIR         = .
 libXmlRpc_HEADER_FILES_INSTALL_DIR = /XmlRpc
@@ -39,13 +42,15 @@ libXmlRpc_OBJC_FILES = \
        NSString+XmlRpcCoding.m         \
        NSURL+XmlRpcCoding.m            \
 
+# framework support
 XmlRpc_HEADER_FILES = $(libXmlRpc_HEADER_FILES)
 XmlRpc_OBJC_FILES   = $(libXmlRpc_OBJC_FILES)
 
+
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
-
-ifeq ($(FOUNDATION_LIB),apple)
+else
 include $(GNUSTEP_MAKEFILES)/framework.make
 endif
 -include GNUmakefile.postamble
index 876989ca97e7bf1d7932b86c8cc10c3ccbdabe52..ea0a30c3719af677455ef98643e40928fa69554e 100644 (file)
@@ -1,15 +1,21 @@
 # compilation settings
 
+ifeq ($(FOUNDATION_LIB),apple)
+XmlRpc_INSTALL_DIR = /Library/Frameworks/
+endif
+
 libXmlRpc_LIBRARIES_DEPEND_UPON += -lSaxObjC -lDOM
 
 ifneq ($(GNUSTEP_BUILD_DIR),)
 libXmlRpc_LIB_DIRS += \
        -L$(GNUSTEP_BUILD_DIR)/../SaxObjC/$(GNUSTEP_OBJ_DIR_NAME) \
        -L$(GNUSTEP_BUILD_DIR)/../DOM/$(GNUSTEP_OBJ_DIR_NAME)
+XmlRpc_LIB_DIRS += -F$(GNUSTEP_BUILD_DIR)/../SaxObjC/
 else
 libXmlRpc_LIB_DIRS += \
        -L../SaxObjC/$(GNUSTEP_OBJ_DIR) \
        -L../DOM/$(GNUSTEP_OBJ_DIR)
+XmlRpc_LIB_DIRS += -F../SaxObjC/
 endif
 
 
index bdd0263fc8065fbad27f5ad61d3fbe353070e470..01b9b89ffb01e855913d6cc7a856c507f3e2c116 100644 (file)
@@ -1,26 +1,36 @@
 # compilation settings
 
+
+ifneq ($(frameworks),yes)
 domxml_TOOL_LIBS  += -lDOM -lSaxObjC
 testqp_TOOL_LIBS  += -lDOM -lSaxObjC
+ADDITIONAL_TOOL_LIBS += -lSaxObjC
+else
+domxml_TOOL_LIBS  += -framework DOM -framework SaxObjC
+testqp_TOOL_LIBS  += -framework DOM -framework SaxObjC
+ADDITIONAL_TOOL_LIBS += -framework SaxObjC
+endif
+
 
 ADDITIONAL_CPPFLAGS  += -Wno-protocol
-ADDITIONAL_TOOL_LIBS += -lSaxObjC
 
 # only with libFoundation
 #ADDITIONAL_TOOL_LIBS += -lEOControl
 
 ADDITIONAL_INCLUDE_DIRS += -I..
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
+
+# library/framework search pathes
+
+DEP_DIRS = ../SaxObjC ../DOM ../XmlRpc
+
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L$(GNUSTEP_BUILD_DIR)/../DOM/$(GNUSTEP_OBJ_DIR_NAME)           \
-       -L$(GNUSTEP_BUILD_DIR)/../SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)       \
-       -L$(GNUSTEP_BUILD_DIR)/../XmlRpc/$(GNUSTEP_OBJ_DIR_NAME)
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
 ADDITIONAL_LIB_DIRS += \
-       -L../DOM/$(GNUSTEP_OBJ_DIR)     \
-       -L../SaxObjC/$(GNUSTEP_OBJ_DIR) \
-       -L../XmlRpc/$(GNUSTEP_OBJ_DIR)
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib