~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Source/GNUmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# Install into the system root by default
26
26
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
27
27
 
28
 
GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles
29
 
 
30
28
GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=../base.make
31
29
include $(GNUSTEP_MAKEFILES)/common.make
32
30
 
33
31
include ../Version
34
32
include ../config.mak
35
33
 
36
 
srcdir = .
 
34
# Interface version changes with each minor release
 
35
libgnustep-base_INTERFACE_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
 
36
libgnustep-baseadd_INTERFACE_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
 
37
 
37
38
PACKAGE_NAME = gnustep-base
38
 
LIBRARY_VAR = GNUSTEP_BASE
39
39
 
40
40
# The library to be compiled
41
 
 
 
41
LIBRARY_NAME=
42
42
ifeq ($(add),yes)
43
 
LIBRARY_NAME=libgnustep-baseadd libgnustep-base
44
 
else
45
 
LIBRARY_NAME=libgnustep-base
 
43
LIBRARY_NAME += libgnustep-baseadd
 
44
endif
 
45
 
 
46
ifneq ($(base),no)
 
47
LIBRARY_NAME += libgnustep-base
46
48
endif
47
49
 
48
50
libgnustep-base_SUBPROJECTS=Additions
54
56
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
55
57
 
56
58
GNUSTEP_TARGET_INSTALL_PREFIX := \
57
 
     $(shell echo $(GNUSTEP_SYSTEM_ROOT) | sed 's|^[a-zA-Z]:/|/|')
 
59
     $(shell echo $(GNUSTEP_SYSTEM_ROOT) | sed 's|^[a-zA-Z]:/|/|' | sed 's|/|\\\\057|g')
58
60
GNUSTEP_TARGET_LOCAL_ROOT := \
59
 
     $(shell echo $(GNUSTEP_LOCAL_ROOT) | sed 's|^[a-zA-Z]:/|/|')
 
61
     $(shell echo $(GNUSTEP_LOCAL_ROOT) | sed 's|^[a-zA-Z]:/|/|' | sed 's|/|\\\\057|g')
60
62
GNUSTEP_TARGET_NETWORK_ROOT := \
61
 
     $(shell echo $(GNUSTEP_NETWORK_ROOT) | sed 's|^[a-zA-Z]:/|/|')
 
63
     $(shell echo $(GNUSTEP_NETWORK_ROOT) | sed 's|^[a-zA-Z]:/|/|' | sed 's|/|\\\\057|g')
62
64
DEFS= -DGNUSTEP_INSTALL_PREFIX=$(GNUSTEP_TARGET_INSTALL_PREFIX) \
63
65
        -DGNUSTEP_LOCAL_ROOT=$(GNUSTEP_TARGET_LOCAL_ROOT) \
64
66
        -DGNUSTEP_NETWORK_ROOT=$(GNUSTEP_TARGET_NETWORK_ROOT) \
67
69
        -DGNUSTEP_TARGET_OS=\"$(GNUSTEP_TARGET_OS)\" \
68
70
        -DLIBRARY_COMBO=\"$(LIBRARY_COMBO)\"
69
71
 
 
72
 
70
73
else
71
74
 
72
75
GNUSTEP_INSTALL_PREFIX=$(GNUSTEP_SYSTEM_ROOT)
85
88
GNU_MFILES = \
86
89
GSCompatibility.m \
87
90
GSLocale.m \
88
 
Unicode.m \
89
 
behavior.m \
90
91
preface.m \
91
92
mframe.m
92
93
 
93
 
ifeq ($(OBJC_RUNTIME), NeXT)
 
94
ifneq ($(OBJC_RUNTIME_LIB), gnu)
94
95
GNU_MFILES += objc-gnu2next.m
95
96
ifeq ($(HAVE_PTHREAD_H), yes)
96
97
GNU_MFILES += thr-pthread.m
100
101
endif
101
102
 
102
103
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
103
 
GNU_MFILES += WindowsFileHandle.m libgnustep-base-entry.m
104
 
else
105
 
GNU_MFILES += UnixFileHandle.m 
 
104
GNU_MFILES += libgnustep-base-entry.m
106
105
endif
107
106
 
108
 
GNU_CFILES = \
109
 
md5.c \
110
 
numbers.c \
111
 
o_vscanf.c 
112
 
 
113
107
GNU_OTHER_SRCFILES = \
114
 
md5.h \
115
108
win32-entry.m \
116
109
win32-def.top \
117
110
libgnustep-base.def
118
111
 
119
 
GNU_HEADERS = \
120
 
DistributedObjects.h \
121
 
GSLocale.h \
 
112
ADD_HEADERS = \
 
113
GSObjCRuntime.h \
 
114
GSCategories.h \
 
115
GSFileHandle.h \
122
116
GSUnion.h \
123
117
GSIArray.h \
124
118
GSIMap.h \
 
119
GCObject.h \
 
120
GSLock.h \
 
121
GSMime.h \
 
122
GSXML.h \
 
123
GSLocale.h \
125
124
Unicode.h \
126
 
UnixFileHandle.h \
 
125
GNUstep.h \
127
126
behavior.h \
128
 
numbers.h \
129
 
objc-gnu2next.h \
130
 
preface.h
131
 
 
132
 
ifeq ($(OBJC_RUNTIME), NeXT)
133
 
GNU_HEADERS += thr-mach.h
134
 
endif
 
127
preface.h \
 
128
objc-gnu2next.h
 
129
 
 
130
GNU_HEADERS = $(ADD_HEADERS)
 
131
 
135
132
# GNUStep source files
136
133
 
137
134
BASE_MFILES = \
139
136
GSAttributedString.m \
140
137
GSCountedSet.m \
141
138
GSDictionary.m \
 
139
GSFileHandle.m \
142
140
GSFormat.m \
 
141
GSFTPURLHandle.m \
143
142
GSHTTPURLHandle.m \
144
143
GSSet.m \
145
144
GSString.m \
170
169
NSDistributedLock.m \
171
170
NSDistributedNotificationCenter.m \
172
171
NSEnumerator.m \
 
172
NSError.m \
173
173
NSException.m \
174
174
NSFileHandle.m \
175
175
NSFileManager.m \
177
177
NSGeometry.m \
178
178
NSHashTable.m \
179
179
NSHost.m \
 
180
NSIndexSet.m \
180
181
NSInvocation.m \
 
182
NSKeyedArchiver.m \
 
183
NSKeyedUnarchiver.m \
181
184
NSKeyValueCoding.m \
182
185
NSLock.m \
183
186
NSLog.m \
194
197
NSPage.m \
195
198
NSPipe.m \
196
199
NSPort.m \
197
 
GSTcpPort.m \
198
200
NSPortCoder.m \
199
201
NSPortMessage.m \
200
202
NSPortNameServer.m \
201
203
NSProcessInfo.m \
 
204
NSPropertyList.m \
202
205
NSProtocolChecker.m \
203
206
NSProxy.m \
204
207
NSRange.m \
206
209
NSScanner.m \
207
210
NSSerializer.m \
208
211
NSSet.m \
 
212
NSSocketPort.m \
 
213
NSSocketPortNameServer.m \
209
214
NSString.m \
210
215
NSTask.m \
211
216
NSThread.m \
218
223
NSUser.m \
219
224
NSUserDefaults.m \
220
225
NSValue.m \
 
226
NSXMLParser.m \
221
227
NSZone.m \
222
228
externs.m \
223
229
objc-load.m
224
230
 
 
231
ifneq ($(GNUSTEP_TARGET_OS), mingw32)
 
232
BASE_MFILES += \
 
233
NSMessagePort.m \
 
234
NSMessagePortNameServer.m
 
235
endif
 
236
 
225
237
ifeq ($(WITH_FFI),libffi)
226
238
GNU_MFILES += cifframe.m
227
239
BASE_MFILES += GSFFIInvocation.m
251
263
NSCallBacks.h \
252
264
tzfile.h
253
265
 
254
 
AUTOGSDOC_HEADERS = \
255
 
GSMime.h \
256
 
GSXML.h \
 
266
FOUNDATION_HEADERS = \
 
267
Foundation.h \
257
268
NSArchiver.h \
258
269
NSArray.h \
259
270
NSAttributedString.h \
260
271
NSAutoreleasePool.h \
261
272
NSBitmapCharSet.h \
262
273
NSBundle.h \
 
274
NSByteOrder.h \
263
275
NSCalendarDate.h \
264
276
NSCharacterSet.h \
265
277
NSClassDescription.h \
276
288
NSDistributedLock.h \
277
289
NSDistributedNotificationCenter.h \
278
290
NSEnumerator.h \
 
291
NSError.h \
279
292
NSException.h \
280
293
NSFileHandle.h \
281
294
NSFileManager.h \
283
296
NSGeometry.h \
284
297
NSHashTable.h \
285
298
NSHost.h \
 
299
NSIndexSet.h \
286
300
NSInvocation.h \
 
301
NSKeyedArchiver.h \
287
302
NSKeyValueCoding.h \
288
303
NSLock.h \
289
304
NSMapTable.h \
294
309
NSNumberFormatter.h \
295
310
NSObjCRuntime.h \
296
311
NSObject.h \
 
312
NSPathUtilities.h \
297
313
NSPort.h \
298
314
NSPortCoder.h \
299
315
NSPortMessage.h \
300
316
NSPortNameServer.h \
301
317
NSProcessInfo.h \
 
318
NSPropertyList.h \
302
319
NSProtocolChecker.h \
303
320
NSProxy.h \
304
321
NSRange.h \
305
322
NSRunLoop.h \
306
323
NSScanner.h \
 
324
NSSerialization.h \
307
325
NSSet.h \
308
326
NSString.h \
309
327
NSTask.h \
314
332
NSURLHandle.h \
315
333
NSUndoManager.h \
316
334
NSUserDefaults.h \
 
335
NSUtilities.h \
317
336
NSValue.h \
 
337
NSXMLParser.h \
318
338
NSZone.h
319
339
 
320
 
FOUNDATION_HEADERS = \
321
 
Foundation.h \
322
 
NSByteOrder.h \
323
 
NSConcreteNumber.h \
324
 
NSPathUtilities.h \
325
 
NSSerialization.h \
326
 
NSUtilities.h \
327
 
$(AUTOGSDOC_HEADERS) \
328
 
objc-load.h
329
 
 
330
 
 
331
340
UNICODE_HEADERS = \
332
341
unicode/caseconv.h \
333
342
unicode/cop.h \
342
351
 
343
352
GENERATED_HFILES = \
344
353
dynamic-load.h \
345
 
$(HEADER_DIR)/preface.h \
 
354
$(HEADER_DIR_BASE)/preface.h \
346
355
$(GNUSTEP_TARGET_DIR)/mframe.h \
347
356
$(GNUSTEP_TARGET_DIR)/config.h \
348
357
$(GNUSTEP_TARGET_DIR)/GSConfig.h
349
358
 
350
 
# The C source files to be compiled
351
 
libgnustep-base_C_FILES = $(GNU_CFILES)
352
 
 
353
359
# The Objective-C source files to be compiled
354
360
libgnustep-base_OBJC_FILES = $(GNU_MFILES) \
355
361
        $(BASE_MFILES) $(NSVALUE_MFILES) $(NSNUMBER_MFILES)
357
363
# Extra DLL exports file
358
364
libgnustep-base_DLL_DEF = libgnustep-base.def
359
365
 
360
 
libgnustep-base_HEADER_FILES_DIR = $(HEADER_DIR)
 
366
libgnustep-base_HEADER_FILES_DIR = $(HEADER_DIR_FND)
361
367
libgnustep-base_HEADER_FILES_INSTALL_DIR = /Foundation
362
368
 
363
369
libgnustep-base_HEADER_FILES = $(FOUNDATION_HEADERS)
364
370
 
365
 
DOCUMENT_NAME = Base
 
371
# Resources
 
372
RESOURCE_SET_NAME = libbase-resources
 
373
libbase-resources_RESOURCE_FILES_INSTALL_DIR = Library/Libraries/Resources/gnustep-base
 
374
libbase-resources_LANGUAGES =
 
375
libbase-resources_LOCALIZED_RESOURCE_FILES =
 
376
libbase-resources_RESOURCE_DIRS =
 
377
libbase-resources_RESOURCE_FILES = Info-gnustep.plist
366
378
 
367
 
Base_HEADER_FILES_DIR = $(HEADER_DIR)
368
 
Base_AGSDOC_FILES = Base.gsdoc $(AUTOGSDOC_HEADERS)
369
 
Base_AGSDOC_FLAGS = \
370
 
        -HeaderDirectory ../Headers/Foundation \
371
 
        -Declared Foundation \
372
 
        -Standards YES \
373
 
        -WordMap '{\
374
 
        FOUNDATION_EXPORT=extern;FOUNDATION_STATIC_INLINE="";\
375
 
        GS_GEOM_SCOPE=extern;GS_GEOM_ATTR="";\
376
 
        GS_EXPORT=extern;GS_DECLARE="";\
377
 
        GS_RANGE_SCOPE=extern;GS_RANGE_ATTR="";\
378
 
        GS_ZONE_SCOPE=extern;GS_ZONE_ATTR="";\
379
 
        }' -Up Base
380
379
 
381
380
-include Makefile.preamble
382
381
 
383
382
-include GNUmakefile.local
384
383
 
385
384
include $(GNUSTEP_MAKEFILES)/library.make
386
 
 
387
 
# Only build the doc if doc=yes was passed on the command line
388
 
ifeq ($(doc),yes)
389
 
include $(GNUSTEP_MAKEFILES)/documentation.make
390
 
endif
 
385
include $(GNUSTEP_MAKEFILES)/resource-set.make
391
386
 
392
387
-include Makefile.postamble
 
388
 
 
389
include CompatibilityHeaders.make