4 # Copyright (C) 1998 MDlink online service center, Helge Hess
7 # Author: Helge Hess (helge@mdlink.de)
9 # This file is part of the MDlink Object Framework 2 (MOF2)
11 # Permission to use, copy, modify, and distribute this software and its
12 # documentation for any purpose and without fee is hereby granted, provided
13 # that the above copyright notice appear in all copies and that both that
14 # copyright notice and this permission notice appear in supporting
17 # We disclaim all warranties with regard to this software, including all
18 # implied warranties of merchantability and fitness, in no event shall
19 # we be liable for any special, indirect or consequential damages or any
20 # damages whatsoever resulting from loss of use, data or profits, whether in
21 # an action of contract, negligence or other tortious action, arising out of
22 # or in connection with the use or performance of this software.
26 include $(GNUSTEP_MAKEFILES)/common.make
28 PACKAGE_NAME=skyrix-objc
31 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
33 LIBRARY_NAME = libobjc
35 # dce, decosf1, irix, mach, os2, posix, pthreads, single, solaris, vxworks
38 GC_HEADER_FILES_DIR = ./gc/include
50 libobjc_HEADER_FILES = \
65 libobjc_OBJC_FILES = \
85 thr-backends/$(THREADING).c\
89 ADDITIONAL_CPPFLAGS += \
93 -DOBJC_THREAD_BACKEND='"thr-backends/$(THREADING).h"'\
98 ADDITIONAL_CFLAGS += -O2 -Wall
100 libobjc_HEADER_FILES_DIR = .
101 libobjc_HEADER_FILES_INSTALL_DIR = /objc
103 libobjc_DLL_DEF = libobjc.def
105 ifeq ($(THREADING), single)
106 ADDITIONAL_CPPFLAGS += -DOBJC_WITHOUT_THREADING
110 ADDITIONAL_CPPFLAGS += -DOBJC_WITH_GC=1 -DGC_DEBUG=1
111 ADDITIONAL_CPPFLAGS += -DDEBUG_OBJC_GC=0
112 libobjc_LIBRARIES_DEPEND_UPON += -lgc
114 ifeq ($(THREADING), solaris)
115 ADDITIONAL_CPPFLAGS += -DSOLARIS_THREADS
119 ADDITIONAL_CPPFLAGS += -DOBJC_WITH_GC=0 -DDEBUG_OBJC_GC=0
124 alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o \
125 headers.o mark.o obj_map.o blacklst.o finalize.o new_hblk.o dbg_mlc.o \
126 malloc.o stubborn.o checksums.o solaris_threads.o irix_threads.o \
127 typd_mlc.o ptr_chck.o mallocx.o solaris_pthreads.o \
130 ADDITIONAL_LIBRARY_OBJ_FILES = $(addprefix gc/, $(GC_OFILES))
133 -include config/$(GNUSTEP_TARGET_CPU)/config.make
134 -include config/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/config.make
136 -include GNUmakefile.preamble
137 include $(GNUSTEP_MAKEFILES)/library.make
138 -include GNUmakefile.postamble