]> err.no Git - sope/blob - gnustep-objc/GNUmakefile
fixed gcc 4.0 warnings
[sope] / gnustep-objc / GNUmakefile
1 #
2 #   GNUmakefile
3 #
4 #   Copyright (C) 1998 MDlink online service center, Helge Hess
5 #   
6 #
7 #   Author: Helge Hess (helge@mdlink.de)
8 #
9 #   This file is part of the MDlink Object Framework 2 (MOF2)
10 #
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
15 #   documentation.
16 #
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.
23 #
24
25 -include config.make
26 include $(GNUSTEP_MAKEFILES)/common.make
27
28 PACKAGE_NAME=skyrix-objc
29 VERSION=lf2.95.3
30
31 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
32
33 LIBRARY_NAME = libobjc
34
35 # dce, decosf1, irix, mach, os2, posix, pthreads, single, solaris, vxworks
36 THREADING = single
37
38 GC_HEADER_FILES_DIR = ./gc/include
39 GC_HEADER_FILES = \
40         cord.h          \
41         ec.h            \
42         gc.h            \
43         gc_alloc.h      \
44         gc_cpp.h        \
45         gc_inl.h        \
46         gc_inline.h     \
47         gc_typed.h      \
48         weakpointer.h   \
49
50 libobjc_HEADER_FILES = \
51         objc-decls.h    \
52         Object.h        \
53         Protocol.h      \
54         encoding.h      \
55         hash.h          \
56         objc-api.h      \
57         objc-list.h     \
58         objc-mem.h      \
59         objc.h          \
60         sarray.h        \
61         thr.h           \
62         typedstream.h   \
63 #       NXConstStr.h    \
64
65 libobjc_OBJC_FILES = \
66         Object.m        \
67         Protocol.m      \
68         linking.m       \
69 #       NXConstStr.m    \
70
71 libobjc_C_FILES = \
72         globals.c               \
73         archive.c               \
74         class.c                 \
75         encoding.c              \
76         gc.c                    \
77         hash.c                  \
78         init.c                  \
79         misc.c                  \
80         nil_method.c            \
81         objects.c               \
82         sarray.c                \
83         selector.c              \
84         sendmsg.c               \
85         thr-backends/$(THREADING).c\
86         thr.c                   \
87         libobjc_entry.c         \
88
89 ADDITIONAL_CPPFLAGS += \
90         -pipe           \
91         -DSTDC_HEADERS=1\
92         -DHAVE_STDLIB_H \
93         -DOBJC_THREAD_BACKEND='"thr-backends/$(THREADING).h"'\
94
95 #       -DOBJC_DEBUG=1  \
96 #        -DEBUG_DTABLE=1 \
97
98 ADDITIONAL_CFLAGS += -O2 -Wall
99
100 libobjc_HEADER_FILES_DIR         = .
101 libobjc_HEADER_FILES_INSTALL_DIR = /objc
102
103 libobjc_DLL_DEF = libobjc.def
104
105 ifeq ($(THREADING), single)
106 ADDITIONAL_CPPFLAGS += -DOBJC_WITHOUT_THREADING
107 endif
108
109 ifeq ($(gc), yes)
110 ADDITIONAL_CPPFLAGS     += -DOBJC_WITH_GC=1 -DGC_DEBUG=1
111 ADDITIONAL_CPPFLAGS     += -DDEBUG_OBJC_GC=0
112 libobjc_LIBRARIES_DEPEND_UPON += -lgc
113
114 ifeq ($(THREADING), solaris)
115 ADDITIONAL_CPPFLAGS += -DSOLARIS_THREADS
116 endif
117
118 else # gc
119 ADDITIONAL_CPPFLAGS += -DOBJC_WITH_GC=0 -DDEBUG_OBJC_GC=0
120 endif
121
122 ifeq ($(gc), xyes)
123 GC_OFILES = \
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 \
128         dyn_load.o \
129
130 ADDITIONAL_LIBRARY_OBJ_FILES = $(addprefix gc/, $(GC_OFILES))
131 endif
132
133 -include config/$(GNUSTEP_TARGET_CPU)/config.make
134 -include config/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/config.make
135
136 -include GNUmakefile.preamble
137 include $(GNUSTEP_MAKEFILES)/library.make
138 -include GNUmakefile.postamble