2009-09-08 16:18:59 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
|
|
|
|
|
|
|
LIBRARY_NAME = libobjc
|
|
|
|
|
2010-01-25 13:07:16 +00:00
|
|
|
SUBPROJECTS = toydispatch
|
|
|
|
|
2009-09-08 16:18:59 +00:00
|
|
|
libobjc_VERSION = 4
|
|
|
|
|
|
|
|
libobjc_OBJC_FILES = \
|
2009-11-17 21:13:41 +00:00
|
|
|
NSBlocks.m\
|
2009-09-08 16:18:59 +00:00
|
|
|
NXConstStr.m\
|
|
|
|
Object.m\
|
|
|
|
Protocol.m\
|
2009-11-17 21:13:41 +00:00
|
|
|
blocks_runtime.m\
|
|
|
|
linking.m\
|
|
|
|
mutation.m\
|
|
|
|
properties.m\
|
2009-09-08 16:18:59 +00:00
|
|
|
sync.m
|
|
|
|
|
|
|
|
|
|
|
|
libobjc_C_FILES = \
|
|
|
|
class.c\
|
2010-01-07 18:22:13 +00:00
|
|
|
class_table.c\
|
2009-09-08 16:18:59 +00:00
|
|
|
encoding.c\
|
2010-01-25 22:56:54 +00:00
|
|
|
hash_table.c\
|
2009-09-08 16:18:59 +00:00
|
|
|
exception.c\
|
|
|
|
gc.c\
|
|
|
|
hash.c\
|
|
|
|
init.c\
|
|
|
|
misc.c\
|
|
|
|
nil_method.c\
|
|
|
|
objects.c\
|
|
|
|
protocol.c\
|
|
|
|
runtime.c\
|
|
|
|
sarray.c\
|
|
|
|
selector.c\
|
|
|
|
sendmsg.c\
|
|
|
|
thr.c
|
2009-11-17 21:13:41 +00:00
|
|
|
|
2009-09-10 22:09:03 +00:00
|
|
|
libobjc_HEADER_FILES_DIR = objc
|
|
|
|
libobjc_HEADER_FILES_INSTALL_DIR = objc
|
|
|
|
libobjc_HEADER_FILES = \
|
|
|
|
Availability.h\
|
|
|
|
NXConstStr.h\
|
|
|
|
Object.h\
|
|
|
|
Protocol.h\
|
|
|
|
blocks_runtime.h\
|
|
|
|
encoding.h\
|
|
|
|
hash.h\
|
|
|
|
objc-api.h\
|
|
|
|
objc-decls.h\
|
|
|
|
objc-list.h\
|
|
|
|
objc.h\
|
|
|
|
runtime-legacy.h\
|
|
|
|
runtime.h\
|
|
|
|
sarray.h\
|
|
|
|
thr.h\
|
|
|
|
typedstream.h
|
2009-09-08 16:18:59 +00:00
|
|
|
|
2009-12-30 16:01:38 +00:00
|
|
|
libobjc_LIBRARIES_DEPEND_UPON += -lpthread
|
|
|
|
|
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.
|
2010-01-25 22:56:54 +00:00
|
|
|
libobjc_CFLAGS += -Werror -std=c99 -g -march=native -fexceptions #-fno-inline
|
2010-01-05 13:51:35 +00:00
|
|
|
libobjc_OBJCFLAGS += -g -std=c99
|
2010-01-25 22:56:54 +00:00
|
|
|
libobjc_LDFLAGS += -g -ltoydispatch
|
2010-02-07 05:45:55 +00:00
|
|
|
libobjc_LIB_DIRS += -L toydispatch/obj
|
2009-09-08 16:18:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(findstring gcc, $(CC)),)
|
|
|
|
libobjc_CFLAGS += -fgnu89-inline
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring mingw, $(GNUSTEP_HOST_OS)),)
|
|
|
|
libobjc_C_FILES += libobjc_entry.c
|
|
|
|
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
|
2010-01-21 17:33:23 +00:00
|
|
|
|
|
|
|
ifeq ($(findstring no, $(debug)),)
|
|
|
|
before-all::
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo WARNING: You are building in debug mode. This will generate a LOT of console \
|
|
|
|
output for every Objective-C program you run. If this is not what you \
|
|
|
|
want, please compile with $(MAKE) debug=no
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
endif
|
2010-01-25 13:07:16 +00:00
|
|
|
|