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

19 files changed:
sope-gdl1/GDLAccess/ChangeLog
sope-gdl1/GDLAccess/GNUmakefile
sope-gdl1/GDLAccess/GNUmakefile.preamble
sope-gdl1/GDLAccess/Version
sope-gdl1/GDLContentStore/ChangeLog
sope-gdl1/GDLContentStore/GNUmakefile
sope-gdl1/GDLContentStore/GNUmakefile.preamble
sope-gdl1/GDLContentStore/Version
sope-gdl1/PostgreSQL/ChangeLog
sope-gdl1/PostgreSQL/GNUmakefile.preamble
sope-gdl1/PostgreSQL/Version
sope-gdl1/SQLite3/ChangeLog
sope-gdl1/SQLite3/GNUmakefile.preamble
sope-gdl1/SQLite3/Version
sope-ical/NGiCal/GNUmakefile.preamble
sope-ldap/NGLdap/ChangeLog
sope-ldap/NGLdap/GNUmakefile
sope-ldap/NGLdap/GNUmakefile.preamble
sope-ldap/NGLdap/Version

index e375d5d4dec5ee722a021bbbee96dc5962506cc8..0221c714ece68eda0897a3f6c9234d3f5c51ca49 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-16  Helge Hess  <helge.hess@opengroupware.org>
+
+       * GNUmakefile, GNUmakefile.preamble: added OSX framework compilation
+         (v4.5.54)
+
 2005-08-05  Helge Hess  <helge.hess@opengroupware.org>
 
        * EOAdaptorContext.m, common.h: do not include NSUtilities.h on Cocoa
index 6db00a8e07eff9e7f65550356bbdf5b06d595e05..eeb778f03fab99f8effda1e8791553de2c964d47 100644 (file)
@@ -7,7 +7,13 @@ include ../common.make
 
 GNUSTEP_INSTALLATION_DIR = ${GNUSTEP_LOCAL_ROOT}
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME = libGDLAccess
+else
+FRAMEWORK_NAME = GDLAccess
+endif
+
+
 libGDLAccess_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
 libGDLAccess_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
 
@@ -108,22 +114,30 @@ endif
 libGDLAccess_HEADER_FILES_DIR         = .
 libGDLAccess_HEADER_FILES_INSTALL_DIR = /GDLAccess
 
+
 # adaptor load test
 
 TOOL_NAME = load-EOAdaptor connect-EOAdaptor
 
-load-EOAdaptor_OBJC_FILES = load-EOAdaptor.m
-load-EOAdaptor_LIB_DIRS   += -L./$(GNUSTEP_OBJ_DIR)
-load-EOAdaptor_TOOL_LIBS  += -lGDLAccess -lEOControl
-
+load-EOAdaptor_OBJC_FILES    = load-EOAdaptor.m
 connect-EOAdaptor_OBJC_FILES = connect-EOAdaptor.m
-connect-EOAdaptor_LIB_DIRS   += -L./$(GNUSTEP_OBJ_DIR)
-connect-EOAdaptor_TOOL_LIBS  += -lGDLAccess -lEOControl
 
 
+# framework support
+
+GDLAccess_HEADER_FILES = $(libGDLAccess_HEADER_FILES)
+GDLAccess_OBJC_FILES   = $(libGDLAccess_OBJC_FILES)
+GDLAccess_SUBPROJECTS  = $(libGDLAccess_SUBPROJECTS)
+
+
+# building
+
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
-include $(GNUSTEP_MAKEFILES)/aggregate.make
+else
+include $(GNUSTEP_MAKEFILES)/framework.make
+endif
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
 include fhs.make
index deda0f6e9e0daf5a9de78f84a5882bf612fa4a95..b8b6232ba44f38e2f3b2fe6d07f1c9c82ead1a34 100644 (file)
@@ -1,36 +1,58 @@
-# $Id: GNUmakefile.preamble 1 2004-08-20 10:38:46Z znek $
+# compilation settings
+
+SOPE_ROOT=../..
+
+ADDITIONAL_CPPFLAGS += -Wall
 
 ADDITIONAL_CPPFLAGS += \
-        -Wall -DCOMPILE_FOR_GSTEP_MAKE=1        \
-       \
         -DGDL_MAJOR_VERSION=$(MAJOR_VERSION)   \
         -DGDL_MINOR_VERSION=$(MINOR_VERSION)   \
-        -DGDL_SUBMINOR_VERSION=$(SUBMINOR_VERSION)   \
-       \
+        -DGDL_SUBMINOR_VERSION=$(SUBMINOR_VERSION)
+
+ADDITIONAL_CPPFLAGS += \
         -DSOPE_MAJOR_VERSION=$(SOPE_MAJOR_VERSION)   \
         -DSOPE_MINOR_VERSION=$(SOPE_MINOR_VERSION)   \
         -DSOPE_SUBMINOR_VERSION=$(SOPE_SUBMINOR_VERSION)
 
 ADDITIONAL_INCLUDE_DIRS += \
         -I. -I..               \
-       -IFoundationExt         \
-       -I../../sope-core/      \
-       -I../../sope-core/NGExtensions/
+       -I./FoundationExt       \
+       -I$(SOPE_ROOT)/sope-core/       \
+       -I$(SOPE_ROOT)/sope-core/NGExtensions/
+
+
+# dependencies
+
+libGDLAccess_LIBRARIES_DEPEND_UPON += -lEOControl
+GDLAccess_LIBRARIES_DEPEND_UPON    += -framework EOControl
 
+ifneq ($(frameworks),yes)
+ADDITIONAL_TOOL_LIBS += -lGDLAccess -lEOControl
+else
+ADDITIONAL_TOOL_LIBS += -framework GDLAccess -framework EOControl
+endif
 
-libGDLAccess_LIBRARIES_DEPEND_UPON += \
-       -lEOControl
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../..
-RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core
+# library/framework search pathes
 
+DEP_DIRS = . $(SOPE_ROOT)/sope-core/EOControl
+
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L$(RELBUILD_DIR_Core)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)        \
-       -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME)
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
 ADDITIONAL_LIB_DIRS += \
-       -L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+
+
+# TODO: add prebinding address
+
+ifeq ($(FOUNDATION_LIB),apple)
+#libGDLAccess_PREBIND_ADDR="0x??"
+#libGDLAccess_LDFLAGS += -seg1addr $(libGDLAccess_PREBIND_ADDR)
+#GDLAccess_LDFLAGS += -seg1addr $(libGDLAccess_PREBIND_ADDR)
+endif
index d124b50f26de387d248a94761fd62b6a22df310b..5a9103fbcfe3a90091d3e23c80df915537dcc5fd 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=53
+SUBMINOR_VERSION:=54
index a02ec312163b28350633f7c13e6bed40d9a48789..e9a2e3cf117340fe1818908866e61dfc72383632 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-16  Helge Hess  <helge.hess@opengroupware.org>
+
+       * GNUmakefile, GNUmakefile.preamble: added OSX framework compilation
+         (v4.5.35)
+
 2005-07-23  Sebastian Reitenbach  <reitenbach@rapideye.de>
 
        * GNUmakefile.preamble: added OpenBSD linking flags (v4.5.34)
index 527c0e5583297688f417eb9bbd418cc46fdc8720..1f1deb7ff72928cd05ffcd9445da8a8000791562 100644 (file)
@@ -7,7 +7,12 @@ include ./Version
 
 GNUSTEP_INSTALLATION_DIR = ${GNUSTEP_LOCAL_ROOT}
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME = libGDLContentStore
+else
+FRAMEWORK_NAME = GDLContentStore
+endif
+
 libGDLContentStore_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
 libGDLContentStore_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
 
@@ -44,14 +49,28 @@ libGDLContentStore_OBJC_FILES +=            \
        GCSFieldExtractor.m                     \
        GCSStringFormatter.m                    \
 
-gcs_ls_OBJC_FILES     += gcs_ls.m
-gcs_mkdir_OBJC_FILES  += gcs_mkdir.m
-gcs_cat_OBJC_FILES    += gcs_cat.m
-gcs_gensql_OBJC_FILES += gcs_gensql.m
+gcs_ls_OBJC_FILES            += gcs_ls.m
+gcs_mkdir_OBJC_FILES         += gcs_mkdir.m
+gcs_cat_OBJC_FILES           += gcs_cat.m
+gcs_gensql_OBJC_FILES        += gcs_gensql.m
 gcs_recreatequick_OBJC_FILES += gcs_recreatequick.m
 
+
+# framework support
+
+GDLContentStore_HEADER_FILES = $(libGDLContentStore_HEADER_FILES)
+GDLContentStore_OBJC_FILES   = $(libGDLContentStore_OBJC_FILES)
+GDLContentStore_SUBPROJECTS  = $(libGDLContentStore_SUBPROJECTS)
+
+
+# building
+
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
+else
+include $(GNUSTEP_MAKEFILES)/framework.make
+endif
 include $(GNUSTEP_MAKEFILES)/tool.make
 -include GNUmakefile.postamble
 include fhs.make
index 5ebdee602965e11b4a5dbc75b4513797d9d1d88c..5e5e6002d56037b43aa18352a785b697661dc56e 100644 (file)
@@ -1,16 +1,35 @@
 # compilation settings
 
+SOPE_ROOT=../..
+
+ADDITIONAL_CPPFLAGS += -Wall
+
+ADDITIONAL_INCLUDE_DIRS += -I. -I..
+
+
+# dependencies
+
 libGDLContentStore_LIBRARIES_DEPEND_UPON += \
-       -lGDLAccess     \
-       -lNGExtensions  \
-       -lEOControl     \
-       -lSaxObjC
+       -lGDLAccess                     \
+       -lNGExtensions -lEOControl      \
+       -lDOM -lSaxObjC
+
+GDLContentStore_LIBRARIES_DEPEND_UPON += \
+       -framework GDLAccess    \
+       -framework NGExtensions -framework EOControl \
+       -framework DOM -framework SaxObjC
 
+ifneq ($(frameworks),yes)
 GCS_TOOL_LIBS += \
-       -lGDLContentStore       \
-       -lGDLAccess             \
+       -lGDLContentStore -lGDLAccess   \
        -lNGExtensions -lEOControl      \
        -lDOM -lSaxObjC
+else
+GCS_TOOL_LIBS += \
+       -framework GDLContentStore -framework GDLAccess \
+       -framework NGExtensions -framework EOControl    \
+       -framework DOM -framework SaxObjC
+endif
 
 gcs_ls_TOOL_LIBS            += $(GCS_TOOL_LIBS)
 gcs_mkdir_TOOL_LIBS         += $(GCS_TOOL_LIBS)
@@ -18,14 +37,31 @@ gcs_cat_TOOL_LIBS           += $(GCS_TOOL_LIBS)
 gcs_recreatequick_TOOL_LIBS += $(GCS_TOOL_LIBS)
 gcs_gensql_TOOL_LIBS        += $(GCS_TOOL_LIBS)
 
-ADDITIONAL_INCLUDE_DIRS += -I. -I..
 
+# library/framework search pathes
+
+DEP_DIRS = \
+       .               \
+       ../GDLAccess    \
+       $(SOPE_ROOT)/sope-core/NGExtensions     \
+       $(SOPE_ROOT)/sope-core/EOControl        \
+       $(SOPE_ROOT)/sope-xml/DOM               \
+       $(SOPE_ROOT)/sope-xml/SaxObjC
+
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L./$(GNUSTEP_OBJ_DIR)                  \
-       -L../GDLAccess/$(GNUSTEP_OBJ_DIR)
+       $(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
 
 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
 
+
+# platform specific settings
+
 ifeq ($(FOUNDATION_LIB),apple)
 libGDLContentStore_PREBIND_ADDR="0xC7700000"
 libGDLContentStore_LDFLAGS += -seg1addr $(libGDLContentStore_PREBIND_ADDR)
index 003b64ee362b70e6bd8dab209a6b0cd8d1da08bd..7db0d139c8c3201dbfc42e30d00ec6f8b421b5e2 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION:=4
 MINOR_VERSION:=5
-SUBMINOR_VERSION:=34
+SUBMINOR_VERSION:=35
 
 # v4.5.29 requires libNGExtensions v4.5.161
 # v4.5.26 does not require libNGiCal anymore
index d9995430ba209a68a758c15998c2f28f3f5ec621..3b60179330a66e22e02426cbef6f839112172058 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-16  Helge Hess  <helge.hess@opengroupware.org>
+
+       * GNUmakefile.preamble: added OSX framework compilation (v4.5.45)
+
 2005-08-08  Helge Hess  <helge.hess@skyrix.com>
 
        * removed CVS Id fields (v4.5.44)
index d674a8d5fae2d91b5417311e61de28a3666c953e..ba7e2e029a5ebe06c604d3466982fb4cd92e5202 100644 (file)
 # If not, write to the Free Software Foundation,
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-PostgreSQL_BUNDLE_LIBS += -lpq
-PostgreSQL_BUNDLE_LIBS += -lGDLAccess -lEOControl
+SOPE_ROOT=../..
+
+# PG config
+
+ADDITIONAL_INCLUDE_DIRS += -I$(shell pg_config --includedir)
+ADDITIONAL_LIB_DIRS     += -L$(shell pg_config --libdir)
+PostgreSQL_BUNDLE_LIBS  += -lpq
 
-gdltest_TOOL_LIBS += -lGDLAccess
 
 # set compile flags and go
 
@@ -33,36 +37,47 @@ ADDITIONAL_INCLUDE_DIRS += \
        -I../GDLAccess -I..
 
 ADDITIONAL_INCLUDE_DIRS += \
-       -I.. -I../..                    \
-       -I../../sope-core/              \
-       -I../../sope-core/NGExtensions
+       -I.. -I$(SOPE_ROOT)                     \
+       -I$(SOPE_ROOT)/sope-core/               \
+       -I$(SOPE_ROOT)/sope-core/NGExtensions
 
+# TODO: is this required?
 ADDITIONAL_INCLUDE_DIRS += \
        -I/usr/local/include
 
-ADDITIONAL_INCLUDE_DIRS += -I$(shell pg_config --includedir)
-ADDITIONAL_LIB_DIRS     += -L$(shell pg_config --libdir)
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../..
-RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core
-RELBUILD_DIR_Gdl1=$(RELBUILD_DIR_SOPE)/sope-gdl1
+# dependencies
 
+ifneq ($(frameworks),yes)
+PostgreSQL_BUNDLE_LIBS += -lGDLAccess -lEOControl
+gdltest_TOOL_LIBS      += -lGDLAccess
+else
+PostgreSQL_BUNDLE_LIBS += -framework GDLAccess -framework EOControl
+gdltest_TOOL_LIBS      += -framework GDLAccess
+endif
+
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+       ../GDLAccess \
+       $(SOPE_ROOT)/sope-core/EOControl
+
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L$(RELBUILD_DIR_Core)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)        \
-       -L$(RELBUILD_DIR_Gdl1)/GDLAccess/$(GNUSTEP_OBJ_DIR_NAME)        \
-       -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME)
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
 ADDITIONAL_LIB_DIRS += \
-       -L../GDLAccess/$(GNUSTEP_OBJ_DIR)\
-       -L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
-
 SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
 
 
-ifeq ($(FOUNDATION_LIB),apple)
-PostgreSQL_BUNDLE_LIBS += -lssl -lcrypto
-ADDITIONAL_INCLUDE_DIRS += -I/Library/PostgreSQL/include/
-endif
+# TODO: not necessary? covered by pg_config?
+#ifeq ($(FOUNDATION_LIB),apple)
+#PostgreSQL_BUNDLE_LIBS += -lssl -lcrypto
+#ADDITIONAL_INCLUDE_DIRS += -I/Library/PostgreSQL/include/
+#endif
index e99e63fc0183e031885673859d1af8bacbbe039f..aab40918d8df400dd26555f46dd890a58a345e8e 100644 (file)
@@ -1,5 +1,5 @@
 # version file
 
-SUBMINOR_VERSION:=44
+SUBMINOR_VERSION:=45
 
 # v4.5.41 requires libGDLAccess v4.5.50
index 181d2ebbd8868ac4daf17b2c08512652a89c0c6d..72e80775ecb7cb2d8810013286163981b4746dbb 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-16  Helge Hess  <helge.hess@opengroupware.org>
+
+       * GNUmakefile.preamble: added OSX framework compilation (v4.5.20)
+
 2005-08-08  Helge Hess  <helge@shire.in.skyrix.com>
 
        * GNUmakefile.preamble: fixed pathes for inline-compilation (v4.5.19)
index e2618dfef6f346154015f5abb7d778a3e0c9d06f..bd7190fbac84acde1a66bffd3969b6b46b0f1800 100644 (file)
 # If not, write to the Free Software Foundation,
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-SQLite3_BUNDLE_LIBS += \
-       -lGDLAccess     \
-       -lEOControl     \
-       -lsqlite3
+SOPE_ROOT=../..
+
+# SQLite3 config
+
+SQLite3_BUNDLE_LIBS += -lsqlite3
 
-gdltest_TOOL_LIBS += \
-       -lGDLAccess     \
-       -lNGExtensions
 
 # set compile flags and go
 
@@ -38,25 +36,34 @@ ADDITIONAL_INCLUDE_DIRS += \
 
 ADDITIONAL_INCLUDE_DIRS += \
        -I.. -I../..                    \
-       -I../../sope-core/              \
-       -I../../sope-core/NGExtensions
+       -I$(SOPE_ROOT)/sope-core/               \
+       -I$(SOPE_ROOT)/sope-core/NGExtensions
+
+
+# dependencies
+
+ifneq ($(frameworks),yes)
+SQLite3_BUNDLE_LIBS += -lGDLAccess -lEOControl
+gdltest_TOOL_LIBS   += -lGDLAccess -lEOControl
+else
+SQLite3_BUNDLE_LIBS += -framework GDLAccess -framework EOControl
+gdltest_TOOL_LIBS   += -framework GDLAccess -framework EOControl
+endif
+
 
+# library/framework search pathes
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../..
-RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core
-RELBUILD_DIR_Gdl1=$(RELBUILD_DIR_SOPE)/sope-gdl1
+DEP_DIRS = \
+       ../GDLAccess \
+       $(SOPE_ROOT)/sope-core/EOControl
 
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L$(RELBUILD_DIR_Core)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)        \
-       -L$(RELBUILD_DIR_Gdl1)/GDLAccess/$(GNUSTEP_OBJ_DIR_NAME)        \
-       -L$(GNUSTEP_BUILD_DIR)/$(GNUSTEP_OBJ_DIR_NAME)
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
 ADDITIONAL_LIB_DIRS += \
-       -L../GDLAccess/$(GNUSTEP_OBJ_DIR)\
-       -L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
-SYSTEM_LIB_DIR += \
-       -L/usr/local/lib                \
-       -L/usr/lib
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
index b6d35ff69a5eab0e472ae73376e6314f86240bb9..26ee2eeb7fec481ef6513bc2ca68dce0cd9b4e50 100644 (file)
@@ -1,5 +1,5 @@
 # Version file
 
-SUBMINOR_VERSION:=19
+SUBMINOR_VERSION:=20
 
 # v4.5.17 requires libGDLAccess v4.5.50
index 1d56597a22f316715dd378d01b39b350a6d3f0ed..c7e2334c3e39941aa4c49665ffe380194e297855 100644 (file)
@@ -53,4 +53,5 @@ SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
 ifeq ($(FOUNDATION_LIB),apple)
 libNGiCal_PREBIND_ADDR="0xC1E00000"
 libNGiCal_LDFLAGS += -seg1addr $(libNGiCal_PREBIND_ADDR)
+NGiCal_LDFLAGS += -seg1addr $(libNGiCal_PREBIND_ADDR)
 endif
index 88926e93bc7a9f83c90675cd66d8f82ec6204ab7..7c9c7d8eb7fa09a0c5cbc8a002ed58c0cb3693bc 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-16  Helge Hess  <helge.hess@opengroupware.org>
+
+       * GNUmakefile, GNUmakefile.preamble: added OSX framework compilation
+         (v4.5.24)
+
 2005-04-25  Helge Hess  <helge.hess@opengroupware.org>
 
        * fixed gcc 4.0 warnings (v4.5.23)
index f65884e9360cd6436083ca25569747dedda0eece..c42ae6ee905277e58d520039f770cc8d613b573b 100644 (file)
@@ -6,7 +6,12 @@ include ./Version
 
 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME = libNGLdap
+else
+FRAMEWORK_NAME = NGLdap
+endif
+
 
 libNGLdap_HEADER_FILES_DIR         = .
 libNGLdap_HEADER_FILES_INSTALL_DIR = /NGLdap
@@ -45,7 +50,21 @@ libNGLdap_OBJC_FILES = \
        NGLdapGlobalID.m                \
        NGLdapFileManager.m             \
 
+
+# framework support
+
+NGLdap_HEADER_FILES = $(libNGLdap_HEADER_FILES)
+NGLdap_OBJC_FILES   = $(libNGLdap_OBJC_FILES)
+NGLdap_SUBPROJECTS  = $(libNGLdap_SUBPROJECTS)
+
+
+# building
+
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
+else
+include $(GNUSTEP_MAKEFILES)/framework.make
+endif
 -include GNUmakefile.postamble
 -include fhs.make
index d8ab652f4b4d1e53efb0447ecc70dd0ef4f2835c..e8a9a2a2aebd3e6ee8d78eb9e7f1e74055e431d7 100644 (file)
@@ -6,15 +6,19 @@ ADDITIONAL_INCLUDE_DIRS += \
        -I../../sope-core               \
        -I/usr/local/include
 
-ifneq ($(FOUNDATION_LIB),apple)
-ADDITIONAL_INCLUDE_DIRS += -I/usr/local/openldap/include
-SYSTEM_LIB_DIR += -L/usr/local/openldap/lib
-endif
+ADDITIONAL_CPPFLAGS += -Wall -Wno-protocol
 
+# dependencies
 
 libNGLdap_LIBRARIES_DEPEND_UPON += \
        -lNGExtensions -lEOControl      \
        -lDOM -lSaxObjC
+NGLdap_LIBRARIES_DEPEND_UPON += \
+       -framework NGExtensions -framework EOControl    \
+       -framework DOM -framework SaxObjC
+
+
+# OpenLDAP library dependencies
 
 ifeq ($(reentrant),yes)
 ADDITIONAL_CPPFLAGS += -D_REENTRANT=1
@@ -22,6 +26,10 @@ libNGLdap_LIBRARIES_DEPEND_UPON += -lldap_r -llber -lpthread
 else
 libNGLdap_LIBRARIES_DEPEND_UPON += -lldap -llber
 endif
+NGLdap_LIBRARIES_DEPEND_UPON += $(libNGLdap_LIBRARIES_DEPEND_UPON)
+
+
+# SASL/SSL dependencies
 
 ifneq ($(FOUNDATION_LIB),nx)
 
@@ -32,41 +40,45 @@ ifneq ($(nossl),yes)
 libNGLdap_LIBRARIES_DEPEND_UPON += -lssl
 endif
 
-else
+else # is NeXT/Apple Foundation
 
+# TODO: document whether Foundation includes required dependencies
 ADDITIONAL_LDFLAGS += -framework Foundation
 
 endif
 
-ADDITIONAL_CPPFLAGS += -Wall -Wno-protocol
 
+# library/framework search pathes
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/../../sope-core
-RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../../sope-xml
+DEP_DIRS = \
+       $(SOPE_ROOT)/sope-core/NGStreams        \
+       $(SOPE_ROOT)/sope-core/NGExtensions     \
+       $(SOPE_ROOT)/sope-core/EOControl        \
+       $(SOPE_ROOT)/sope-xml/DOM               \
+       $(SOPE_ROOT)/sope-xml/SaxObjC
 
+ifneq ($(frameworks),yes)
 ADDITIONAL_LIB_DIRS += \
-       -L$(GNUSTEP_OBJ_DIR)                                            \
-       -L$(RELBUILD_DIR_SxCore)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME)      \
-       -L$(RELBUILD_DIR_SxCore)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME)   \
-       -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)      \
-       -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME)             \
-       -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
 ADDITIONAL_LIB_DIRS += \
-       -L./$(GNUSTEP_OBJ_DIR)                                  \
-       -L../../sope-core/NGStreams/$(GNUSTEP_OBJ_DIR)          \
-       -L../../sope-core/NGExtensions/$(GNUSTEP_OBJ_DIR)       \
-       -L../../sope-xml/DOM/$(GNUSTEP_OBJ_DIR)                 \
-       -L../../sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)             \
-       -L../../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
 SYSTEM_LIB_DIR += -L/usr/local/lib
 
+
 # Apple
 
 ifeq ($(FOUNDATION_LIB),apple)
 libNGLdap_PREBIND_ADDR="0xC1C00000"
 libNGLdap_LDFLAGS += -seg1addr $(libNGLdap_PREBIND_ADDR)
+NGLdap_LDFLAGS += -seg1addr $(libNGLdap_PREBIND_ADDR)
 endif
+
+# only required on 10.2 and before?
+#ifneq ($(FOUNDATION_LIB),apple)
+#ADDITIONAL_INCLUDE_DIRS += -I/usr/local/openldap/include
+#SYSTEM_LIB_DIR += -L/usr/local/openldap/lib
+#endif
index 9b70b74294527318faea33ac44844ae85d7a7a16..19b1711d726fd59cab9c427b2092cd79c8a967ab 100644 (file)
@@ -2,4 +2,4 @@
 
 MAJOR_VERSION=4
 MINOR_VERSION=5
-SUBMINOR_VERSION:=23
+SUBMINOR_VERSION:=24