+2005-08-10 Helge Hess <helge.hess@opengroupware.org>
+
+ * all makefiles: added flags to build only frameworks on MacOSX
+
2005-08-08 Marcus Mueller <znek@mulle-kybernetik.com>
* README-OSX.txt: updated prebinding info
-include ../../config.make
include ../common.make
+ifneq ($(frameworks),yes)
LIBRARY_NAME = libEOControl
+else
+FRAMEWORK_NAME = EOControl
+endif
libEOControl_DLL_DEF = libEOControl.def
libEOControl_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
EOQualifierVariable.m \
NSObject+QualDesc.m \
+# framework support
+EOControl_HEADER_FILES = $(libEOControl_HEADER_FILES)
+EOControl_OBJC_FILES = $(libEOControl_OBJC_FILES)
+
+
+# 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
-include ../../config.make
include ../common.make
+ifneq ($(frameworks),yes)
LIBRARY_NAME = libEOCoreData
+else
+FRAMEWORK_NAME = EOCoreData
+endif
libEOCoreData_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
libEOCoreData_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
NSRelationshipDescription+EO.m \
NSManagedObject+KVC.m \
+# framework support
+EOCoreData_HEADER_FILES = $(libEOCoreData_HEADER_FILES)
+EOCoreData_OBJC_FILES = $(libEOCoreData_OBJC_FILES)
+
+
+# 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
ADDITIONAL_CPPFLAGS += -Wall -funsigned-char
-SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+libEOCoreData_LIBRARIES_DEPEND_UPON += -lEOControl
+EOCoreData_LIBRARIES_DEPEND_UPON += -framework EOControl
+
+
+# library/framework search pathes
+DEP_DIRS = ../EOControl
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/..
-libEOCoreData_LIB_DIRS += \
- -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
-libEOCoreData_LIB_DIRS += \
- -L../EOControl/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
-libEOCoreData_LIBRARIES_DEPEND_UPON += -lEOControl
-
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
# libFoundation, gstep-base
# TODO: libEOCoreData_PREBIND_ADDR="0xC1000000"
ifneq ($(libEOCoreData_PREBIND_ADDR),)
libEOCoreData_LDFLAGS += -seg1addr $(libEOCoreData_PREBIND_ADDR)
+EOCoreData_LDFLAGS += -seg1addr $(libEOCoreData_PREBIND_ADDR)
endif
ADDITIONAL_LDFLAGS += -framework CoreData
-include ../../config.make
include ../common.make
+ifneq ($(frameworks),yes)
LIBRARY_NAME = libNGExtensions
+else
+FRAMEWORK_NAME = NGExtensions
+endif
libNGExtensions_DLL_DEF = libNGExtensions.def
libNGExtensions_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
$(NGRuleEngine_HEADER_FILES) \
$(NGLogging_HEADER_FILES)
-ADDITIONAL_INCLUDE_DIRS += \
- -I./NGExtensions/ \
- -I./FdExt.subproj/ -I./EOExt.subproj/
+
+# framework support
+
+
+NGExtensions_HEADER_FILES_DIR = NGExtensions
+NGExtensions_HEADER_FILES = $(libNGExtensions_HEADER_FILES)
+NGExtensions_OBJC_FILES = $(libNGExtensions_OBJC_FILES)
+NGExtensions_SUBPROJECTS = $(libNGExtensions_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
# compilation settings
+ADDITIONAL_INCLUDE_DIRS += \
+ -I./NGExtensions/ \
+ -I./FdExt.subproj/ -I./EOExt.subproj/
+
ADDITIONAL_CPP_FLAGS += -Wall -Wno-import -Wno-protocol -O2
libNGExtensions_INCLUDE_DIRS += -I..
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/..
-RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../../sope-xml
-libNGExtensions_LIB_DIRS += \
- -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME) \
- -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME)
+# dependencies
+
+libNGExtensions_LIBRARIES_DEPEND_UPON += -lEOControl -lDOM -lSaxObjC -lz
+NGExtensions_LIBRARIES_DEPEND_UPON += \
+ -framework EOControl \
+ -framework DOM -framework SaxObjC \
+ -lz
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+ ../EOControl \
+ ../../sope-xml/DOM ../../sope-xml/SaxObjC
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),\
+ -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
else
-libNGExtensions_LIB_DIRS += \
- -L../EOControl/$(GNUSTEP_OBJ_DIR) \
- -L../../sope-xml/DOM/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS += \
+ $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
endif
-libNGExtensions_LIBRARIES_DEPEND_UPON += -lEOControl -lDOM -lSaxObjC -lz
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+
# Apple
libNGExtensions_LDFLAGS += -seg1addr $(libNGExtensions_PREBIND_ADDR)
endif
+
# platform specific settings
ifeq ($(GNUSTEP_TARGET_OS),mingw32)
+2005-08-10 Helge Hess <helge.hess@opengroupware.org>
+
+ * reorganized inclusion to support frameworks (v4.5.49)
+
2005-05-03 Helge Hess <helge.hess@opengroupware.org>
* NGSocket.m (SockAddrLenType): fixed a Tiger warning (v4.5.48)
include ../common.make
include ./Version
+ifneq ($(frameworks),yes)
LIBRARY_NAME = libNGStreams
+else
+FRAMEWORK_NAME = NGStreams
+endif
+
+libNGStreams_DLL_DEF = libNGStreams.def
libNGStreams_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
libNGStreams_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
-libNGStreams_DLL_DEF = libNGStreams.def
libNGStreams_HEADER_FILES_DIR = NGStreams
libNGStreams_HEADER_FILES_INSTALL_DIR = /NGStreams
\
NGGZipStream.m \
+# framework support
+NGStreams_HEADER_FILES_DIR = $(libNGStreams_HEADER_FILES_DIR)
+NGStreams_HEADER_FILES = $(libNGStreams_HEADER_FILES)
+NGStreams_OBJC_FILES = $(libNGStreams_OBJC_FILES)
+
+
+# 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
# compilation settings
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/..
-RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../../sope-xml
-
-libNGStreams_LIB_DIRS += \
- -L$(GNUSTEP_OBJ_DIR) \
- -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)
-else
-libNGStreams_LIB_DIRS += \
- -L../NGExtensions/$(GNUSTEP_OBJ_DIR) \
- -L../EOControl/$(GNUSTEP_OBJ_DIR)
-endif
+libNGStreams_INCLUDE_DIRS += \
+ -I$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS) \
+ -INGStreams \
+ -I../NGExtensions \
+ -I..
+
+NGStreams_INCLUDE_DIRS += $(libNGStreams_INCLUDE_DIRS)
+
+
+# dependencies
libNGStreams_LIBRARIES_DEPEND_UPON += \
-lNGExtensions -lEOControl \
-lDOM -lSaxObjC \
-lz
+NGStreams_LIBRARIES_DEPEND_UPON += \
+ -framework NGExtensions -framework EOControl \
+ -framework DOM -framework SaxObjC \
+ -lz
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+ ../NGExtensions \
+ ../EOControl \
+ ../../sope-xml/DOM ../../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
+
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
-libNGStreams_INCLUDE_DIRS += \
- -I$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS) \
- -INGStreams \
- -I../NGExtensions \
- -I..
# activating SSL support
ifneq ($(ssl),no)
libNGStreams_OBJC_FILES += NGActiveSSLSocket.m
+NGStreams_OBJC_FILES += NGActiveSSLSocket.m
ADDITIONAL_CPPFLAGS += -DHAVE_OPENSSL=1 -DOPENSSL_NO_KRB5
libNGStreams_LIBRARIES_DEPEND_UPON += -lssl -lcrypto
+NGStreams_LIBRARIES_DEPEND_UPON += -lssl -lcrypto
endif
ADDITIONAL_CPPFLAGS += -Wall -Wno-protocol
ifeq ($(FOUNDATION_LIB),apple)
libNGStreams_PREBIND_ADDR="0xC1400000"
libNGStreams_LDFLAGS += -seg1addr $(libNGStreams_PREBIND_ADDR)
+NGStreams_LDFLAGS += -seg1addr $(libNGStreams_PREBIND_ADDR)
endif
# Windows
02111-1307, USA.
*/
+#include <NGStreams/NGBase64Stream.h>
+#include <NGStreams/NGCTextStream.h>
#include "common.h"
-#include "NGBase64Stream.h"
-#include "NGCTextStream.h"
static inline BOOL isbase64(char a) {
if (('A' <= a) && (a <= 'Z')) return YES;
02111-1307, USA.
*/
+#include <NGStreams/NGBufferedStream.h>
#include "common.h"
-#include "NGBufferedStream.h"
#define NEWLINE_CHAR '\n'
#define WRITE_WARN_SIZE (1024 * 1024 * 100) /* 100MB */
02111-1307, USA.
*/
+#include <NGStreams/NGByteCountStream.h>
#include "common.h"
-#include "NGByteCountStream.h"
@implementation NGByteCountStream
02111-1307, USA.
*/
-#import <NGExtensions/NGCharBuffers.h>
+#include <NGStreams/NGCTextStream.h>
+#include <NGStreams/NGStreamExceptions.h>
+#include <NGStreams/NGFileStream.h>
+#include <NGExtensions/NGCharBuffers.h>
#include "common.h"
-#include "NGCTextStream.h"
-#include "NGStreamExceptions.h"
-#include "NGFileStream.h"
static NSString *NGNewLineString = @"\n";
*/
#include <objc/objc-api.h>
+#include <NGStreams/NGConcreteStreamFileHandle.h>
+#include <NGStreams/NGStreamProtocols.h>
+#include <NGStreams/NGStreamExceptions.h>
+#include <NGStreams/NGBufferedStream.h>
#include "common.h"
-#include "NGConcreteStreamFileHandle.h"
-#include "NGStreamProtocols.h"
-#include "NGStreamExceptions.h"
-#include "NGBufferedStream.h"
@interface NGStream(FileHandleReset)
02111-1307, USA.
*/
-#include "NGDataStream.h"
-#include "NGStreamExceptions.h"
+#include <NGStreams/NGDataStream.h>
+#include <NGStreams/NGStreamExceptions.h>
#include "common.h"
// TODO: cache -bytes and -length of NSData for immutable data!
# include <fcntl.h>
#endif
+#include <NGStreams/NGFileStream.h>
+#include <NGStreams/NGBufferedStream.h>
+#include <NGStreams/NGConcreteStreamFileHandle.h>
+#include <NGStreams/NGLockingStream.h>
+#include <NGStreams/NGStreamExceptions.h>
+#include <NGStreams/NGDescriptorFunctions.h>
#include "common.h"
#import <Foundation/NSThread.h>
-#include "NGFileStream.h"
-#include "NGBufferedStream.h"
-#include "NGConcreteStreamFileHandle.h"
-#include "NGLockingStream.h"
-#include "NGStreamExceptions.h"
-#include "NGDescriptorFunctions.h"
#if !defined(POLLRDNORM)
# define POLLRDNORM POLLIN
02111-1307, USA.
*/
+#include <NGStreams/NGFilterStream.h>
#include "common.h"
-#include "NGFilterStream.h"
@implementation NGFilterStream
02111-1307, USA.
*/
+#include <NGStreams/NGFilterTextStream.h>
#include "common.h"
-#include "NGFilterTextStream.h"
@implementation NGFilterTextStream
02111-1307, USA.
*/
+#include <NGStreams/NGLockingStream.h>
#include "common.h"
-#include "NGLockingStream.h"
@implementation NGLockingStream
02111-1307, USA.
*/
+#include <NGStreams/NGStreamExceptions.h>
+#include <NGStreams/NGStream.h>
+#include <NGStreams/NGFilterStream.h>
#include "common.h"
-#include "NGStreamExceptions.h"
-#include "NGStream.h"
-#include "NGFilterStream.h"
@implementation NGStream
02111-1307, USA.
*/
-#include "NGStreams.h"
+#include <NGStreams/NGStreams.h>
@implementation NGStreams
# version file
-SUBMINOR_VERSION:=48
+SUBMINOR_VERSION:=49
// local common's
-#include "NGStreamExceptions.h"
+#include <NGStreams/NGStreamExceptions.h>
@interface NSObject(OSXHacks)
- (void)subclassResponsibility:(SEL)_acmd;
+2005-08-10 Helge Hess <helge.hess@opengroupware.org>
+
+ * EOQualTool.m: fixed gcc 4.0 warnings
+
2004-09-23 Helge Hess <helge.hess@skyrix.com>
* addd sope-rsrclookup.m tool for tetsing NGResourceLocator
[self printQualifier:q nesting:_level];
}
-- (void)printQualifier:(id)_q nesting:(int)_level {
+- (void)printQualifier:(EOQualifier *)_q nesting:(int)_level {
[self indent:_level];
if ([_q isKindOfClass:[EOAndQualifier class]]) {
printf("AND\n");
- [self printQualifiers:[_q qualifiers] nesting:_level + 1];
+ [self printQualifiers:[(EOAndQualifier *)_q qualifiers]
+ nesting:_level + 1];
}
else if ([_q isKindOfClass:[EOOrQualifier class]]) {
printf("OR\n");
- [self printQualifiers:[_q qualifiers] nesting:_level + 1];
+ [self printQualifiers:[(EOOrQualifier *)_q qualifiers] nesting:_level + 1];
}
else if ([_q isKindOfClass:[EONotQualifier class]]) {
printf("NOT\n");
- [self printQualifier:[_q qualifier] nesting:_level + 1];
+ [self printQualifier:[(EONotQualifier *)_q qualifier] nesting:_level + 1];
}
else if ([_q isKindOfClass:[EOKeyValueQualifier class]]) {
- id v = [_q value];
+ id v = [(EOKeyValueQualifier *)_q value];
printf("key OP value\n");
_level++;
[self indent:_level];
- printf("key: %s\n", [[_q key] cString]);
+ printf("key: %s\n", [[(EOKeyValueQualifier *)_q key] cString]);
[self indent:_level];
printf("value: '%s' (class=%s)\n",
[[v stringValue] cString],
[NSStringFromClass([v class]) cString]);
[self indent:_level];
- printf("OP: %s\n", [NSStringFromSelector([_q selector]) cString]);
+ printf("OP: %s\n",
+ [NSStringFromSelector([(EOKeyValueQualifier *)_q selector])
+ cString]);
_level--;
}
else if ([_q isKindOfClass:[EOKeyComparisonQualifier class]]) {
printf("key1 OP key1\n");
_level++;
[self indent:_level];
- printf("left: %s\n", [[_q leftKey] cString]);
+ printf("left: %s\n", [[(EOKeyComparisonQualifier *)_q leftKey] cString]);
[self indent:_level];
- printf("right: %s\n", [[_q rightKey] cString]);
+ printf("right: %s\n", [[(EOKeyComparisonQualifier *)_q rightKey] cString]);
[self indent:_level];
- printf("OP: %s\n", [NSStringFromSelector([_q selector]) cString]);
+ printf("OP: %s\n",
+ [NSStringFromSelector([(EOKeyComparisonQualifier *)_q selector])
+ cString]);
_level--;
}
else
-I../NGStreams \
-I../NGExtensions \
-ADDITIONAL_LIB_DIRS += \
- -L../EOControl/$(GNUSTEP_OBJ_DIR) \
- -L../NGExtensions/$(GNUSTEP_OBJ_DIR) \
- -L../NGStreams/$(GNUSTEP_OBJ_DIR) \
+ifneq ($(frameworks),yes)
ADDITIONAL_TOOL_LIBS += \
-lNGStreams -lNGExtensions -lEOControl \
-lDOM -lSaxObjC
+else
+ADDITIONAL_TOOL_LIBS += \
+ -framework NGStreams -framework NGExtensions -framework EOControl \
+ -framework DOM -framework SaxObjC
+endif
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+ ../EOControl ../NGExtensions ../NGStreams \
+ ../../sope-xml/DOM ../../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
SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib