2010-09-22 10:37:10 +00:00
|
|
|
|
|
|
|
PACKAGE_NAME = gnustep-objc2
|
2011-03-20 20:38:12 +00:00
|
|
|
VERSION=1.3.0
|
2010-09-22 10:37:10 +00:00
|
|
|
SVN_MODULE_NAME = libobjc2
|
|
|
|
SVN_BASE_URL = svn+ssh://svn.gna.org/svn/gnustep/libs
|
|
|
|
SVN_TAG_NAME=objc2
|
|
|
|
|
2009-09-08 16:18:59 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
|
|
|
|
2011-04-05 17:21:30 +00:00
|
|
|
LIBRARY_NAME = libobjc libobjcxx
|
2010-09-22 10:37:10 +00:00
|
|
|
|
2009-09-08 16:18:59 +00:00
|
|
|
libobjc_VERSION = 4
|
|
|
|
|
|
|
|
libobjc_OBJC_FILES = \
|
2009-11-17 21:13:41 +00:00
|
|
|
NSBlocks.m\
|
2010-06-06 21:11:25 +00:00
|
|
|
Protocol2.m\
|
2009-11-17 21:13:41 +00:00
|
|
|
blocks_runtime.m\
|
|
|
|
mutation.m\
|
|
|
|
properties.m\
|
2009-09-08 16:18:59 +00:00
|
|
|
sync.m
|
|
|
|
|
|
|
|
|
|
|
|
libobjc_C_FILES = \
|
2010-06-02 13:18:24 +00:00
|
|
|
abi_version.c\
|
2011-03-25 20:01:43 +00:00
|
|
|
alias_table.c\
|
2010-09-08 14:02:03 +00:00
|
|
|
caps.c\
|
2010-06-02 22:25:12 +00:00
|
|
|
category_loader.c\
|
2010-01-07 18:22:13 +00:00
|
|
|
class_table.c\
|
2010-06-03 15:17:12 +00:00
|
|
|
dtable.c\
|
2010-06-30 12:02:53 +00:00
|
|
|
eh_personality.c\
|
2010-06-04 23:40:07 +00:00
|
|
|
encoding2.c\
|
2010-01-25 22:56:54 +00:00
|
|
|
hash_table.c\
|
2010-06-01 12:59:57 +00:00
|
|
|
hooks.c\
|
2010-05-13 23:27:17 +00:00
|
|
|
ivar.c\
|
2010-06-02 22:25:12 +00:00
|
|
|
loader.c\
|
2009-09-08 16:18:59 +00:00
|
|
|
protocol.c\
|
|
|
|
runtime.c\
|
2010-05-13 22:29:56 +00:00
|
|
|
sarray2.c\
|
|
|
|
selector_table.c\
|
2010-06-03 15:17:12 +00:00
|
|
|
sendmsg2.c\
|
2010-10-26 15:44:43 +00:00
|
|
|
statics_loader.c\
|
|
|
|
toydispatch.c
|
2010-06-01 12:59:57 +00:00
|
|
|
|
2011-04-05 17:21:30 +00:00
|
|
|
libobjcxx_CC_FILES = objcxx_eh.cc
|
|
|
|
libobjcxx_LDFLAGS = -lstdc++ -lobjc
|
2011-03-20 20:38:12 +00:00
|
|
|
|
2010-06-29 22:00:43 +00:00
|
|
|
ifneq ($(enable_legacy), no)
|
|
|
|
libobjc_C_FILES += legacy_malloc.c
|
|
|
|
endif
|
|
|
|
|
2009-09-10 22:09:03 +00:00
|
|
|
libobjc_HEADER_FILES_DIR = objc
|
|
|
|
libobjc_HEADER_FILES_INSTALL_DIR = objc
|
2010-05-26 19:41:03 +00:00
|
|
|
ifneq ($(install_headers), no)
|
2010-05-16 21:33:22 +00:00
|
|
|
libobjc_HEADER_FILES = \
|
2009-09-10 22:09:03 +00:00
|
|
|
Availability.h\
|
2010-09-09 11:41:50 +00:00
|
|
|
Object.h\
|
2010-09-09 12:00:19 +00:00
|
|
|
Protocol.h\
|
2009-09-10 22:09:03 +00:00
|
|
|
blocks_runtime.h\
|
2010-09-08 14:02:03 +00:00
|
|
|
capabilities.h\
|
2010-09-09 11:41:50 +00:00
|
|
|
encoding.h\
|
2010-06-30 12:02:53 +00:00
|
|
|
hooks.h\
|
2009-09-10 22:09:03 +00:00
|
|
|
runtime.h\
|
2011-03-22 20:53:16 +00:00
|
|
|
runtime-deprecated.h\
|
2010-09-06 18:27:07 +00:00
|
|
|
slot.h\
|
|
|
|
objc.h\
|
2010-10-26 15:44:43 +00:00
|
|
|
objc-api.h\
|
|
|
|
toydispatch.h
|
2010-05-21 13:49:19 +00:00
|
|
|
endif
|
2009-09-08 16:18:59 +00:00
|
|
|
|
2011-04-06 18:17:18 +00:00
|
|
|
# Disable type dependent dispatch if tdd=no is specified
|
2010-09-14 16:02:29 +00:00
|
|
|
ifneq ($(tdd), no)
|
2010-08-31 22:03:53 +00:00
|
|
|
libobjc_CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH
|
|
|
|
endif
|
|
|
|
|
2011-04-04 22:21:13 +00:00
|
|
|
ifeq ($(findstring openbsd, $(GNUSTEP_HOST_OS)), openbsd)
|
|
|
|
libobjc_LIBRARIES_DEPEND_UPON += -pthread
|
|
|
|
else
|
2010-10-26 15:44:43 +00:00
|
|
|
libobjc_LIBRARIES_DEPEND_UPON += -lpthread
|
2011-04-04 22:21:13 +00:00
|
|
|
endif
|
2009-12-30 16:01:38 +00:00
|
|
|
|
2011-04-06 18:17:18 +00:00
|
|
|
# If we're doing a release build, don't tell people that the code that they're
|
|
|
|
# using is rubbish - they complain.
|
|
|
|
#CPPFLAGS += -DNO_SELECTOR_MISMATCH_WARNINGS
|
|
|
|
|
|
|
|
libobjc_CFLAGS += -O3
|
|
|
|
|
2009-09-08 16:18:59 +00:00
|
|
|
# Deprecated functions are only deprecated for external use, not for us because
|
|
|
|
# we are special, precious, little flowers.
|
2009-09-13 11:51:27 +00:00
|
|
|
libobjc_CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500
|
2009-09-08 16:18:59 +00:00
|
|
|
# Note to Riccardo. Please do not 'fix' C99isms in this. The new ABI is only
|
|
|
|
# useful on compilers that support C99 (currently only clang), so there is no
|
|
|
|
# benefit from supporting platforms with no C99 compiler.
|
2011-03-16 16:22:08 +00:00
|
|
|
libobjc_CFLAGS += -std=gnu99 -g -fexceptions #-fvisibility=hidden
|
2011-03-20 20:38:12 +00:00
|
|
|
libobjc_CCFLAGS += -std=c++98 -g -fexceptions #-fvisibility=hidden
|
2011-04-06 18:17:18 +00:00
|
|
|
libobjc_CFLAGS += -Wno-unused-function
|
2011-03-20 20:38:12 +00:00
|
|
|
|
2011-01-10 15:08:52 +00:00
|
|
|
# Uncomment this when debugging - it makes everything slow, but means that the
|
|
|
|
# debugger actually works...
|
|
|
|
#libobjc_CFLAGS += -fno-inline
|
2010-10-26 15:44:43 +00:00
|
|
|
libobjc_OBJCFLAGS += $(libobjc_CFLAGS) $(libobjc_CFLAGS)
|
2009-09-08 16:18:59 +00:00
|
|
|
|
|
|
|
ifneq ($(findstring gcc, $(CC)),)
|
2010-10-01 13:11:48 +00:00
|
|
|
# Hack to get the __sync_* GCC builtins to work with GCC
|
|
|
|
ifeq ($(GNUSTEP_TARGET_CPU), ix86)
|
|
|
|
libobjc_CFLAGS += -march=i586
|
|
|
|
endif
|
2009-09-08 16:18:59 +00:00
|
|
|
endif
|
|
|
|
|
2010-09-29 02:07:51 +00:00
|
|
|
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
|
2010-09-29 04:17:50 +00:00
|
|
|
# Hack to get mingw to provide declaration for strdup (since it is non-standard)
|
|
|
|
libobjc_CPPFLAGS += -U__STRICT_ANSI__
|
2010-09-29 02:07:51 +00:00
|
|
|
endif
|
|
|
|
|
2010-01-25 13:07:16 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/aggregate.make
|
2010-02-07 05:45:55 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/library.make
|