-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.make
543 lines (493 loc) · 20.8 KB
/
defaults.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
# defaults.make - default settings -*- Makefile -*-
#
# Copyright (c) 2008-2022, The CHICKEN Team
# Copyright (c) 2007, Felix L. Winkelmann
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
# conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this list of conditions and the following
# disclaimer.
# Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided with the distribution.
# Neither the name of the author nor the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# basic parameters
BINARYVERSION = 11
STACKDIRECTION ?= 1
CROSS_CHICKEN ?= 0
# directories
SEP ?= /
DESTDIR ?=
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
SHAREDIR ?= $(PREFIX)/share
DATADIR ?= $(SHAREDIR)/$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
INCLUDEDIR ?= $(PREFIX)/include
MANDIR ?= $(SHAREDIR)/man
DOCDIR ?= $(DATADIR)/doc
VARDIR ?= $(LIBDIR)
MAN1DIR ?= $(MANDIR)/man1
CHICKENLIBDIR ?= $(VARDIR)/$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
EGGDIR ?= $(CHICKENLIBDIR)/$(BINARYVERSION)
CHICKENINCDIR ?= $(INCLUDEDIR)/$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
# For the windows shell, we must distinguish between paths built into
# binaries (system calls may use slash as a separator) and paths
# passed to shell commands when installing. We prefix the latter with
# an 'I':
INST_DIRS=BINDIR LIBDIR SHAREDIR DATADIR MAN1DIR CHICKENINCDIR DOCDIR EGGDIR
$(foreach dir,$(INST_DIRS),$(eval I$(dir)=$(subst /,$(SEP),$($(dir)))))
INSTALL_LIB_NAME = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
RUNTIME_LINKER_PATH ?= .
# commands
ifdef HOSTSYSTEM
C_COMPILER ?= $(HOSTSYSTEM)-gcc
CXX_COMPILER ?= $(HOSTSYSTEM)-g++
LIBRARIAN ?= $(HOSTSYSTEM)-ar
else
C_COMPILER ?= gcc
CXX_COMPILER ?= g++
LIBRARIAN ?= ar
endif
ifdef WINDOWS
ifdef HOSTSYSTEM
RC_COMPILER ?= $(HOSTSYSTEM)-windres
else
RC_COMPILER ?= windres
endif
endif
LINKER ?= $(C_COMPILER)
ASSEMBLER ?= $(C_COMPILER)
ifdef WINDOWS_SHELL
REMOVE_COMMAND ?= del
INSTALL_PROGRAM ?= copy
MAKEDIR_COMMAND ?= -mkdir
else
REMOVE_COMMAND ?= rm
INSTALL_PROGRAM ?= install
MAKEDIR_COMMAND ?= $(INSTALL_PROGRAM)
endif
POSTINSTALL_STATIC_LIBRARY ?= true
POSTINSTALL_PROGRAM ?= true
# target variables
ifdef TARGETSYSTEM
TARGET_C_COMPILER ?= $(TARGETSYSTEM)-$(C_COMPILER)
TARGET_CXX_COMPILER ?= $(TARGETSYSTEM)-$(CXX_COMPILER)
TARGET_RC_COMPILER ?= $(TARGETSYSTEM)-$(RC_COMPILER)
TARGET_LIBRARIAN ?= $(TARGETSYSTEM)-$(LIBRARIAN)
else
TARGET_C_COMPILER ?= $(C_COMPILER)
TARGET_CXX_COMPILER ?= $(CXX_COMPILER)
TARGET_RC_COMPILER ?= $(RC_COMPILER)
TARGET_LIBRARIAN ?= $(LIBRARIAN)
endif
TARGET_C_COMPILER_OPTIONS ?= $(C_COMPILER_OPTIONS)
TARGET_C_COMPILER_OPTIMIZATION_OPTIONS ?= $(C_COMPILER_OPTIMIZATION_OPTIONS)
TARGET_LIBRARIAN_OPTIONS ?= $(LIBRARIAN_OPTIONS)
TARGET_PREFIX ?= $(PREFIX)
TARGET_RUN_PREFIX ?= $(TARGET_PREFIX)
TARGET_LIBRARIES ?= $(LIBRARIES)
TARGET_LINKER_OPTIONS ?= $(LINKER_OPTIONS)
TARGET_LINKER_OPTIMIZATION_OPTIONS ?= $(LINKER_OPTIMIZATION_OPTIONS)
TARGET_FEATURES ?=
TARGET_LIB_NAME ?= chicken
ifneq ($(TARGET_C_COMPILER),$(C_COMPILER))
CROSS_CHICKEN = 1
else
CROSS_CHICKEN = 0
endif
# options
INCLUDES ?= -I. -I$(SRCDIR)
C_COMPILER_COMPILE_OPTION ?= -c
C_COMPILER_OUTPUT_OPTION ?= -o
C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
ifndef NOPTABLES
C_COMPILER_OPTIONS += -DC_ENABLE_PTABLES
endif
ifdef DEBUGBUILD
ifeq ($(C_COMPILER),gcc)
C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
endif
endif
C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
LINKER_EXECUTABLE_OPTIONS ?= -L.
LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
LINKER_OUTPUT_OPTION ?= -o
LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
LINKER_LIBRARY_OPTION ?= -l
ifdef STATICBUILD
LINKER_LIBRARY_PREFIX ?= lib
LINKER_LIBRARY_SUFFIX ?= .a
else
LINKER_LIBRARY_PREFIX ?= -l
LINKER_LIBRARY_SUFFIX ?=
endif
LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
LINKER_LINK_SHARED_DLOADABLE_OPTIONS ?= -shared -L.
LIBRARIAN_OPTIONS ?= cru
LIBRARIAN_OUTPUT_OPTION ?=
LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
LIBRARIES ?= -lm
ifdef WINDOWS_SHELL
REMOVE_COMMAND_OPTIONS ?= /f /q
REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
MAKE_WRITABLE_COMMAND ?= rem
INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= /Y
INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= /Y
INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= /Y
INSTALL_PROGRAM_FILE_OPTIONS ?= /Y
else
REMOVE_COMMAND_OPTIONS ?= -f
REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
MAKE_WRITABLE_COMMAND ?= chmod 0755
INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m 755
INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m 644
INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m 755
INSTALL_PROGRAM_FILE_OPTIONS ?= -m 644
MAKEDIR_COMMAND_OPTIONS ?= -d -m 755
endif
ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
ASSEMBLER_OUTPUT_OPTION ?= -o
ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
ASSEMBLER_COMPILE_OPTION ?= -c
ifdef STATICBUILD
PRIMARY_LIBCHICKEN ?= lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)$(A)
else
ifeq ($(PLATFORM),cygwin)
PRIMARY_LIBCHICKEN = cyg$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)-0.dll
LIBCHICKEN_SO_FILE = cyg$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)-0.dll
else
PRIMARY_LIBCHICKEN ?= lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)$(SO)
LIBCHICKEN_SO_FILE ?= lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)$(SO)
endif
endif
LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
# other settings
ifdef WINDOWS_SHELL
BUILD_TIME ?= $(shell date /t)
SCRIPT_EXT = .bat
COPY_COMMAND = copy /Y
HOSTNAME ?= $(shell hostname)
UNAME_SYS ?= Windows
# This is a poor man's version of $(file ...) in GNU Make 4.0
# We should consider replacing it when it becomes so widespread
# that systems (Debian, OS X, Haiku, Mingw, Cygwin) are shipping it
echo = echo $(3)$(1)$(2)
else
SCRIPT_EXT =
COPY_COMMAND = cp
echo = echo '$(subst ','\'',$(3))'$(1)$(2)
#' fix Emacs syntax highlighting
endif
WISH ?= "$$wish"
GENERATE_DEBUGGER ?= cat $< >$@; echo 'exec $(WISH) "$(DATADIR)/feathers.tcl" -- "$$@"' >>$@
# file extensions
O ?= .o
A ?= .a
# EXE ?=
SO ?= .so
ASM ?= .S
MAN ?= .mdoc
# special files
POSIXFILE ?= posixunix
CHICKEN_CONFIG_H = chicken-config.h
# bootstrapping compiler
CHICKEN ?= chicken$(EXE)
# interpreter for scripts
CSI ?= csi$(EXE)
# Scheme compiler flags
CHICKEN_OPTIONS = -optimize-level 2 -include-path . -include-path $(SRCDIR) -inline -ignore-repository -feature chicken-bootstrap
ifdef DEBUGBUILD
CHICKEN_OPTIONS += -feature debugbuild -verbose
else
CHICKEN_OPTIONS += -no-warnings
endif
ifndef BUILDING_CHICKEN_BOOT
CHICKEN_OPTIONS += -specialize -consult-types-file $(SRCDIR)types.db
endif
CHICKEN_OPTIONS += $(EXTRA_CHICKEN_OPTIONS)
CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use -no-trace
CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info
CHICKEN_DYNAMIC_OPTIONS = $(CHICKEN_OPTIONS) -feature chicken-compile-shared -dynamic
CHICKEN_IMPORT_LIBRARY_OPTIONS = $(CHICKEN_DYNAMIC_OPTIONS) -no-trace
ifndef DEBUGBUILD
CHICKEN_PROGRAM_OPTIONS += -no-trace
endif
CHICKEN_PROGRAM_OPTIONS += $(if $(PROFILE_OBJECTS),-profile)
# import libraries
PRIMITIVE_IMPORT_LIBRARIES = chicken.base chicken.condition \
chicken.csi chicken.foreign chicken.syntax chicken.time
DYNAMIC_IMPORT_LIBRARIES = srfi-4
DYNAMIC_CHICKEN_IMPORT_LIBRARIES = bitwise blob errno file.posix \
fixnum flonum format gc io keyword load locative memory \
memory.representation platform plist pretty-print \
process process.signal process-context process-context.posix \
random sort string time.posix
DYNAMIC_CHICKEN_COMPILER_IMPORT_LIBRARIES = user-pass
DYNAMIC_CHICKEN_UNIT_IMPORT_LIBRARIES = continuation eval file \
internal irregex pathname port read-syntax repl tcp
# targets
CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
CHICKEN_INSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-install$(PROGRAM_SUFFIX)
CHICKEN_UNINSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-uninstall$(PROGRAM_SUFFIX)
CHICKEN_STATUS_PROGRAM = $(PROGRAM_PREFIX)chicken-status$(PROGRAM_SUFFIX)
CHICKEN_DO_PROGRAM = $(PROGRAM_PREFIX)chicken-do$(PROGRAM_SUFFIX)
CHICKEN_DEBUGGER_PROGRAM ?= $(PROGRAM_PREFIX)feathers$(PROGRAM_SUFFIX)$(SCRIPT_EXT)
IMPORT_LIBRARIES = $(DYNAMIC_IMPORT_LIBRARIES) \
$(PRIMITIVE_IMPORT_LIBRARIES) \
$(foreach lib,$(DYNAMIC_CHICKEN_IMPORT_LIBRARIES),chicken.$(lib)) \
$(foreach lib,$(DYNAMIC_CHICKEN_UNIT_IMPORT_LIBRARIES),chicken.$(lib)) \
$(foreach lib,$(DYNAMIC_CHICKEN_COMPILER_IMPORT_LIBRARIES),chicken.compiler.$(lib))
ifdef STATICBUILD
CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
TARGETLIBS ?= lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)$(A)
TARGETS += $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
$(CSI_STATIC_EXECUTABLE)
else
CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
TARGETLIBS ?= lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)$(A) $(LIBCHICKEN_SO_FILE)
TARGETS += $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
$(CSI_SHARED_EXECUTABLE) \
$(IMPORT_LIBRARIES:%=%.import.so)
endif
TARGETS += $(CHICKEN_INSTALL_PROGRAM)$(EXE) \
$(CHICKEN_UNINSTALL_PROGRAM)$(EXE) \
$(CHICKEN_STATUS_PROGRAM)$(EXE) \
$(CHICKEN_PROFILE_PROGRAM)$(EXE) \
$(CSC_PROGRAM)$(EXE) \
$(CHICKEN_DO_PROGRAM)$(EXE) \
$(CHICKEN_DEBUGGER_PROGRAM)
ifdef WINDOWS
TARGETS += chicken.rc$(O)
endif
# main rule
.PHONY: all
all: $(TARGETS)
# generic part of chicken-config.h
chicken-defaults.h:
ifdef OPTIMIZE_FOR_SPEED
$(call echo, >,$@, /* (this build was optimized for speed) */)
endif
ifdef DEBUGBUILD
$(call echo, >>, $@,#define DEBUGBUILD 1)
endif
ifdef STATICBUILD
$(call echo, >>, $@,#define STATICBUILD 1)
endif
$(call echo, >>, $@,#define C_CHICKEN_PROGRAM "$(CHICKEN_PROGRAM)$(EXE)")
$(call echo, >>, $@,#ifndef C_INSTALL_CC)
$(call echo, >>, $@,# define C_INSTALL_CC "$(C_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_CXX)
$(call echo, >>, $@,# define C_INSTALL_CXX "$(CXX_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_POSTINSTALL_PROGRAM)
$(call echo, >>, $@,# define C_INSTALL_POSTINSTALL_PROGRAM "$(POSTINSTALL_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_RC_COMPILER)
$(call echo, >>, $@,# define C_INSTALL_RC_COMPILER "$(RC_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_CFLAGS)
$(call echo, >>, $@,# define C_INSTALL_CFLAGS "$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_LDFLAGS)
$(call echo, >>, $@,# define C_INSTALL_LDFLAGS "$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_PREFIX)
$(call echo, >>, $@,# define C_INSTALL_PREFIX "$(PREFIX)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_SHARE_HOME)
$(call echo, >>, $@,# define C_INSTALL_SHARE_HOME "$(DATADIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_BIN_HOME)
$(call echo, >>, $@,# define C_INSTALL_BIN_HOME "$(BINDIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_EGG_HOME)
$(call echo, >>, $@,# define C_INSTALL_EGG_HOME "$(EGGDIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_LIB_HOME)
$(call echo, >>, $@,# define C_INSTALL_LIB_HOME "$(LIBDIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_LIB_NAME)
$(call echo, >>, $@,# define C_INSTALL_LIB_NAME "$(INSTALL_LIB_NAME)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_STATIC_LIB_HOME)
$(call echo, >>, $@,# define C_INSTALL_STATIC_LIB_HOME "$(LIBDIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_INCLUDE_HOME)
$(call echo, >>, $@,# define C_INSTALL_INCLUDE_HOME "$(CHICKENINCDIR)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_MORE_LIBS)
$(call echo, >>, $@,# define C_INSTALL_MORE_LIBS "$(LIBRARIES)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_INSTALL_MORE_STATIC_LIBS)
$(call echo, >>, $@,# define C_INSTALL_MORE_STATIC_LIBS "$(LIBRARIES)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_STACK_GROWS_DOWNWARD)
$(call echo, >>, $@,# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION))
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_MORE_LIBS)
$(call echo, >>, $@,# define C_TARGET_MORE_LIBS "$(TARGET_LIBRARIES)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_MORE_STATIC_LIBS)
$(call echo, >>, $@,# define C_TARGET_MORE_STATIC_LIBS "$(TARGET_LIBRARIES)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_CC)
$(call echo, >>, $@,# define C_TARGET_CC "$(TARGET_C_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_CXX)
$(call echo, >>, $@,# define C_TARGET_CXX "$(TARGET_CXX_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_RC_COMPILER)
$(call echo, >>, $@,# define C_TARGET_RC_COMPILER "$(TARGET_RC_COMPILER)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_LIBRARIAN)
$(call echo, >>, $@,# define C_TARGET_LIBRARIAN "$(TARGET_LIBRARIAN)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_INSTALL_PROGRAM)
$(call echo, >>, $@,# define C_TARGET_INSTALL_PROGRAM "$(INSTALL_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_CFLAGS)
$(call echo, >>, $@,# define C_TARGET_CFLAGS "$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_LIBRARIAN_FLAGS)
$(call echo, >>, $@,# define C_TARGET_LIBRARIAN_FLAGS "$(TARGET_LIBRARIAN_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_LDFLAGS)
$(call echo, >>, $@,# define C_TARGET_LDFLAGS "$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_INSTALL_PROGRAM_EXECUTABLE_OPTIONS)
$(call echo, >>, $@,# define C_TARGET_INSTALL_PROGRAM_EXECUTABLE_OPTIONS "$(INSTALL_PROGRAM_EXECUTABLE_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_INSTALL_PROGRAM_FILE_OPTIONS)
$(call echo, >>, $@,# define C_TARGET_INSTALL_PROGRAM_FILE_OPTIONS "$(INSTALL_PROGRAM_FILE_OPTIONS)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_FEATURES)
$(call echo, >>, $@,# define C_TARGET_FEATURES "$(TARGET_FEATURES)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CROSS_CHICKEN)
$(call echo, >>, $@,# define C_CROSS_CHICKEN $(CROSS_CHICKEN))
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_PREFIX)
$(call echo, >>, $@,# define C_TARGET_PREFIX "$(TARGET_PREFIX)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_BIN_HOME)
$(call echo, >>, $@,# define C_TARGET_BIN_HOME "$(TARGET_PREFIX)/bin")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_LIB_HOME)
$(call echo, >>, $@,# define C_TARGET_LIB_HOME "$(TARGET_PREFIX)/lib")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_LIB_NAME)
$(call echo, >>, $@,# define C_TARGET_LIB_NAME "$(TARGET_LIB_NAME)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_RUN_LIB_HOME)
ifdef DLLSINPATH
$(call echo, >>, $@,# define C_TARGET_RUN_LIB_HOME "$(TARGET_RUN_PREFIX)/bin")
else
$(call echo, >>, $@,# define C_TARGET_RUN_LIB_HOME "$(TARGET_RUN_PREFIX)/lib")
endif
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_SHARE_HOME)
$(call echo, >>, $@,# define C_TARGET_SHARE_HOME "$(TARGET_PREFIX)/share/chicken")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_INCLUDE_HOME)
$(call echo, >>, $@,# define C_TARGET_INCLUDE_HOME "$(TARGET_PREFIX)/include/chicken")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_TARGET_STATIC_LIB_HOME)
$(call echo, >>, $@,# define C_TARGET_STATIC_LIB_HOME "$(TARGET_PREFIX)/lib")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CHICKEN_PROGRAM)
$(call echo, >>, $@,# define C_CHICKEN_PROGRAM "$(CHICKEN_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CSC_PROGRAM)
$(call echo, >>, $@,# define C_CSC_PROGRAM "$(CSC_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CSI_PROGRAM)
$(call echo, >>, $@,# define C_CSI_PROGRAM "$(CSI_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CHICKEN_DO_PROGRAM)
$(call echo, >>, $@,# define C_CHICKEN_DO_PROGRAM "$(CHICKEN_DO_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CHICKEN_INSTALL_PROGRAM)
$(call echo, >>, $@,# define C_CHICKEN_INSTALL_PROGRAM "$(CHICKEN_INSTALL_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CHICKEN_UNINSTALL_PROGRAM)
$(call echo, >>, $@,# define C_CHICKEN_UNINSTALL_PROGRAM "$(CHICKEN_UNINSTALL_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_CHICKEN_STATUS_PROGRAM)
$(call echo, >>, $@,# define C_CHICKEN_STATUS_PROGRAM "$(CHICKEN_STATUS_PROGRAM)")
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_WINDOWS_SHELL)
ifdef WINDOWS_SHELL
$(call echo, >>, $@,# define C_WINDOWS_SHELL 1)
else
$(call echo, >>, $@,# define C_WINDOWS_SHELL 0)
endif
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_BINARY_VERSION)
$(call echo, >>, $@,# define C_BINARY_VERSION $(BINARYVERSION))
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,#ifndef C_USES_SONAME)
ifdef USES_SONAME
$(call echo, >>, $@,# define C_USES_SONAME 1)
else
$(call echo, >>, $@,# define C_USES_SONAME 0)
endif
$(call echo, >>, $@,#endif)
$(call echo, >>, $@,/* END OF FILE */)
chicken-install.rc:
$(call echo, >, $@,/* GENERATED */)
$(call echo, >>, $@,1 24 MOVEABLE PURE)
$(call echo, >>, $@,BEGIN)
$(call echo, >>, $@, "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>\r\n")
$(call echo, >>, $@, "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">\r\n")
$(call echo, >>, $@, " <assemblyIdentity version=""1.0.0.0"" processorArchitecture=""*"" name=""$(PROGRAM_PREFIX)chicken-install$(PROGRAM_SUFFIX)"" type=""win32""/>\r\n")
$(call echo, >>, $@, " <ms_asmv2:trustInfo xmlns:ms_asmv2=""urn:schemas-microsoft-com:asm.v2"">\r\n")
$(call echo, >>, $@, " <ms_asmv2:security>\r\n")
$(call echo, >>, $@, " <ms_asmv2:requestedPrivileges>\r\n")
$(call echo, >>, $@, " <ms_asmv2:requestedExecutionLevel level=""asInvoker"" uiAccess=""false""/>\r\n")
$(call echo, >>, $@, " </ms_asmv2:requestedPrivileges>\r\n")
$(call echo, >>, $@, " </ms_asmv2:security>\r\n")
$(call echo, >>, $@, " </ms_asmv2:trustInfo>\r\n")
$(call echo, >>, $@, "</assembly>\r\n")
$(call echo, >>, $@,END)
$(call echo, >>, $@,/* END OF FILE */)
chicken-uninstall.rc:
$(call echo, >, $@,/* GENERATED */)
$(call echo, >>, $@,1 24 MOVEABLE PURE)
$(call echo, >>, $@,BEGIN)
$(call echo, >>, $@, "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>\r\n")
$(call echo, >>, $@, "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">\r\n")
$(call echo, >>, $@, " <assemblyIdentity version=""1.0.0.0"" processorArchitecture=""*"" name=""$(PROGRAM_PREFIX)chicken-uninstall$(PROGRAM_SUFFIX)"" type=""win32""/>\r\n")
$(call echo, >>, $@, " <ms_asmv2:trustInfo xmlns:ms_asmv2=""urn:schemas-microsoft-com:asm.v2"">\r\n")
$(call echo, >>, $@, " <ms_asmv2:security>\r\n")
$(call echo, >>, $@, " <ms_asmv2:requestedPrivileges>\r\n")
$(call echo, >>, $@, " <ms_asmv2:requestedExecutionLevel level=""asInvoker"" uiAccess=""false""/>\r\n")
$(call echo, >>, $@, " </ms_asmv2:requestedPrivileges>\r\n")
$(call echo, >>, $@, " </ms_asmv2:security>\r\n")
$(call echo, >>, $@, " </ms_asmv2:trustInfo>\r\n")
$(call echo, >>, $@, "</assembly>\r\n")
$(call echo, >>, $@,END)
$(call echo, >>, $@,/* END OF FILE */)