source: project/chicken/trunk/defaults.make @ 14829

Last change on this file since 14829 was 14829, checked in by felix winkelmann, 10 years ago

scrutiny-related fixes

File size: 15.1 KB
Line 
1# defaults.make - default settings -*- Makefile -*-
2#
3# Copyright (c) 2007, Felix L. Winkelmann
4# Copyright (c) 2008-2009, The Chicken Team
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
8# conditions are met:
9#
10#   Redistributions of source code must retain the above copyright notice, this list of conditions and the following
11#     disclaimer.
12#   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
13#     disclaimer in the documentation and/or other materials provided with the distribution.
14#   Neither the name of the author nor the names of its contributors may be used to endorse or promote
15#     products derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
18# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
19# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
20# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25# POSSIBILITY OF SUCH DAMAGE.
26
27
28# basic parameters
29
30BINARYVERSION = 4
31STACKDIRECTION ?= 1
32CROSS_CHICKEN ?= 0
33
34ifeq ($(ARCH),x86-64)
35NURSERY ?= (256*1024)
36else
37NURSERY ?= (128*1024)
38endif
39
40# directories
41
42SEP ?= /
43SRCDIR ?= .$(SEP)
44DESTDIR ?=
45PREFIX ?= /usr/local
46
47BINDIR = $(PREFIX)/bin
48LIBDIR = $(PREFIX)/lib
49SHAREDIR = $(PREFIX)/share
50DATADIR = $(SHAREDIR)/chicken
51TOPMANDIR = $(SHAREDIR)/man
52MANDIR = $(TOPMANDIR)/man1
53INCDIR = $(PREFIX)/include
54DOCDIR = $(DATADIR)/doc
55CHICKENLIBDIR = $(LIBDIR)/chicken
56EGGDIR = $(CHICKENLIBDIR)/$(BINARYVERSION)
57
58ifdef WINDOWS_SHELL
59SPREFIX = $(subst /,\\,$(PREFIX))
60IBINDIR = $(SPREFIX)$(SEP)bin
61ILIBDIR = $(SPREFIX)$(SEP)lib
62ISHAREDIR = $(SPREFIX)$(SEP)share
63IDATADIR = $(ISHAREDIR)$(SEP)chicken
64ITOPMANDIR = $(ISHAREDIR)$(SEP)man
65IMANDIR = $(ITOPMANDIR)$(SEP)man1
66IINCDIR = $(SPREFIX)$(SEP)include
67IDOCDIR = $(IDATADIR)$(SEP)doc
68ICHICKENLIBDIR = $(ILIBDIR)$(SEP)chicken
69IEGGDIR = $(ICHICKENLIBDIR)$(SEP)$(BINARYVERSION)
70else
71SPREFIX = $(PREFIX)
72IBINDIR = $(BINDIR)
73ILIBDIR = $(LIBDIR)
74ISHAREDIR = $(SHAREDIR)
75IDATADIR = $(DATADIR)
76ITOPMANDIR = $(TOPMANDIR)
77IMANDIR = $(MANDIR)
78IINCDIR = $(INCDIR)
79IDOCDIR = $(DOCDIR)
80ICHICKENLIBDIR = $(CHICKENLIBDIR)
81IEGGDIR = $(EGGDIR)
82endif
83
84RUNTIME_LINKER_PATH ?= .
85
86# commands
87
88ifdef HOSTSYSTEM
89C_COMPILER ?= $(HOSTSYSTEM)-gcc
90CXX_COMPILER ?= $(HOSTSYSTEM)-g++
91LIBRARIAN ?= $(HOSTSYSTEM)-ar
92else
93C_COMPILER ?= gcc
94CXX_COMPILER ?= g++
95LIBRARIAN ?= ar
96endif
97LINKER ?= $(C_COMPILER)
98ifdef WINDOWS_SHELL
99REMOVE_COMMAND ?= del
100else
101REMOVE_COMMAND ?= rm
102endif
103ASSEMBLER ?= $(C_COMPILER)
104ifdef WINDOWS_SHELL
105INSTALL_PROGRAM ?= xcopy
106MAKEDIR_COMMAND ?= -mkdir
107else
108INSTALL_PROGRAM ?= install
109MAKEDIR_COMMAND ?= mkdir
110endif
111POSTINSTALL_STATIC_LIBRARY ?= true
112POSTINSTALL_PROGRAM ?= true
113
114# cross tools
115
116HOST_C_COMPILER ?= $(C_COMPILER)
117HOST_LIBRARIAN ?= $(LIBRARIAN)
118
119# target variables
120
121ifdef TARGETSYSTEM
122TARGET_C_COMPILER ?= $(TARGETSYSTEM)-$(C_COMPILER)
123TARGET_CXX_COMPILER ?= $(TARGETSYSTEM)-$(CXX_COMPILER)
124else
125TARGET_C_COMPILER ?= $(C_COMPILER)
126TARGET_CXX_COMPILER ?= $(CXX_COMPILER)
127endif
128
129TARGET_C_COMPILER_OPTIONS ?= $(C_COMPILER_OPTIONS)
130TARGET_C_COMPILER_OPTIMIZATION_OPTIONS ?= $(C_COMPILER_OPTIMIZATION_OPTIONS)
131TARGET_PREFIX ?= $(PREFIX)
132TARGET_RUN_PREFIX ?= $(TARGET_PREFIX)
133TARGET_LIBRARIES ?= $(LIBRARIES)
134TARGET_LINKER_OPTIONS ?= $(LINKER_OPTIONS)
135TARGET_LINKER_OPTIMIZATION_OPTIONS ?= $(LINKER_OPTIMIZATION_OPTIONS)
136
137ifneq ($(TARGET_C_COMPILER),$(C_COMPILER))
138CROSS_CHICKEN = 1
139else
140CROSS_CHICKEN = 0
141endif
142
143
144# options
145
146ifndef NOPTABLES
147C_COMPILER_PTABLES_OPTIONS ?= -DC_ENABLE_PTABLES
148endif
149INCLUDES ?= -I. -I$(SRCDIR)
150C_COMPILER_COMPILE_OPTION ?= -c
151C_COMPILER_OUTPUT_OPTION ?= -o
152C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
153
154ifdef DEBUGBUILD
155ifeq ($(C_COMPILER),gcc)
156C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
157endif
158endif
159C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
160C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DNDEBUG -DC_UNSAFE_RUNTIME
161C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
162LINKER_EXECUTABLE_OPTIONS ?= -L.
163LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
164LINKER_OUTPUT_OPTION ?= -o
165LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
166LINKER_LIBRARY_OPTION ?= -l
167ifdef STATICBUILD
168LINKER_LIBRARY_PREFIX ?= lib
169LINKER_LIBRARY_SUFFIX ?= .a
170else
171LINKER_LIBRARY_PREFIX ?= -l
172LINKER_LIBRARY_SUFFIX ?= 
173endif
174LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
175LINKER_LINK_SHARED_DLOADABLE_OPTIONS ?= -shared -L.
176LIBRARIAN_OPTIONS ?= cru
177LIBRARIAN_OUTPUT_OPTION ?=
178LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
179LIBRARIES ?= -lm
180ifdef WINDOWS_SHELL
181REMOVE_COMMAND_OPTIONS ?= /f /q
182REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
183MAKE_WRITABLE_COMMAND ?= rem
184else
185REMOVE_COMMAND_OPTIONS ?= -f
186REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
187MAKE_WRITABLE_COMMAND ?= chmod 0755
188endif
189ifndef WINDOWS_SHELL
190INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
191INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
192INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
193INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
194MAKEDIR_COMMAND_OPTIONS ?= -p
195endif
196ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
197ASSEMBLER_OUTPUT_OPTION ?= -o
198ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
199ASSEMBLER_COMPILE_OPTION ?= -c
200ifdef STATICBUILD
201PRIMARY_LIBCHICKEN ?= libchicken$(A)
202else
203ifeq ($(PLATFORM),cygwin)
204PRIMARY_LIBCHICKEN = cygchicken-0.dll
205LIBCHICKEN_SO_FILE = cygchicken-0.dll
206LIBUCHICKEN_SO_FILE = cyguchicken-0.dll
207LIBCHICKENGUI_SO_FILE ?= 
208else
209PRIMARY_LIBCHICKEN ?= libchicken$(SO)
210LIBCHICKEN_SO_FILE ?= libchicken$(SO)
211LIBUCHICKEN_SO_FILE ?= libuchicken$(SO)
212LIBCHICKENGUI_SO_FILE ?= 
213endif
214endif
215LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
216LIBUCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
217LIBCHICKENGUI_SO_LIBRARIES ?= $(LIBRARIES)
218
219# cross settings
220
221HOST_C_COMPILER_OPTIONS ?= $(C_COMPILER_OPTIONS)
222HOST_C_COMPILER_PTABLES_OPTIONS ?= $(C_COMPILER_PTABLES_OPTIONS)
223HOST_C_COMPILER_COMPILE_OPTION ?= $(C_COMPILER_COMPILE_OPTION)
224HOST_C_COMPILER_OPTIMIZATION_OPTIONS ?= $(C_COMPILER_OPTIMIZATION_OPTIONS)
225HOST_C_COMPILER_SHARED_OPTIONS ?= $(C_COMPILER_SHARED_OPTIONS)
226HOST_C_COMPILER_BUILD_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS)
227HOST_C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT)
228HOST_INCLUDES ?= $(INCLUDES)
229HOST_LINKER ?= $(LINKER)
230HOST_LINKER_OPTIONS ?= $(LINKER_OPTIONS)
231HOST_LINKER_LINK_SHARED_DLOADABLE_OPTIONS ?= $(LINKER_LINK_SHARED_DLOADABLE_OPTIONS)
232HOST_LINKER_OUTPUT_OPTION ?= $(LINKER_OUTPUT_OPTION)
233HOST_LINKER_LIBRARY_PREFIX ?= $(LINKER_LIBRARY_PREFIX)
234HOST_LINKER_LIBRARY_SUFFIX ?= $(LINKER_LIBRARY_SUFFIX)
235HOST_LIBRARIES ?= $(LIBRARIES)
236
237# other settings
238
239HOSTNAME ?= $(shell hostname)
240
241ifdef WINDOWS_SHELL
242BUILD_TIME ?= $(shell date /t)
243COPY_COMMAND = copy /Y
244else
245BUILD_TIME ?= $(shell date +%Y-%m-%d)
246UNAME_SYS ?= $(shell uname)
247COPY_COMMAND = cp
248endif
249BUILD_TAG ?= compiled $(BUILD_TIME) on $(HOSTNAME) ($(UNAME_SYS))
250COPYMANY =
251
252
253# file extensions
254
255O ?= .o
256A ?= .a
257# EXE ?=
258SO ?= .so
259ASM ?= .s
260
261# special files
262
263POSIXFILE ?= posixunix
264CHICKEN_CONFIG_H = chicken-config.h
265
266ifneq ($(ARCH),)
267HACKED_APPLY ?= 1
268APPLY_HACK_SRC ?= apply-hack.$(ARCH)$(ASM)
269APPLY_HACK_OBJECT ?= apply-hack.$(ARCH)$(O)
270endif
271
272# bootstrapping compiler
273
274CHICKEN ?= chicken$(EXE)
275
276# interpreter for scripts
277
278CSI ?= csi$(EXE)
279
280# Scheme compiler flags
281
282CHICKEN_OPTIONS = -no-trace -optimize-level 2 -include-path . -include-path $(SRCDIR)
283ifdef DEBUGBUILD
284CHICKEN_OPTIONS += -feature debugbuild
285endif
286CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
287CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info -inline -local
288CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
289CHICKEN_SCRUTINY_OPTIONS = -types $(SRCDIR)types.db -analyze-only -scrutinize -ignore-repository
290CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
291CHICKEN_DYNAMIC_OPTIONS = $(CHICKEN_OPTIONS) -feature chicken-compile-shared -dynamic
292CHICKEN_IMPORT_LIBRARY_OPTIONS = $(CHICKEN_DYNAMIC_OPTIONS)
293
294# targets
295
296CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
297CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
298CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
299CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
300CHICKEN_INSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-install$(PROGRAM_SUFFIX)
301CHICKEN_UNINSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-uninstall$(PROGRAM_SUFFIX)
302CHICKEN_STATUS_PROGRAM = $(PROGRAM_PREFIX)chicken-status$(PROGRAM_SUFFIX)
303CHICKEN_BUG_PROGRAM = $(PROGRAM_PREFIX)chicken-bug$(PROGRAM_SUFFIX)
304IMPORT_LIBRARIES = chicken lolevel srfi-1 srfi-4 data-structures ports files posix srfi-13 srfi-69 extras \
305        regex srfi-14 tcp foreign compiler scheme srfi-18 utils csi irregex
306IMPORT_LIBRARIES += setup-api setup-download
307SCRUTINIZED_LIBRARIES = library eval data-structures ports files extras lolevel utils tcp srfi-1 srfi-4 srfi-13 \
308       srfi-14 srfi-18 srfi-69 $(POSIXFILE) regex scheduler \
309       profiler stub expand chicken-syntax
310
311ifdef STATICBUILD
312CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
313CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
314CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
315CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
316TARGETLIBS ?= libchicken$(A) libuchicken$(A)
317TARGETS ?= $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
318        $(CSI_STATIC_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
319        $(CSC_PROGRAM)$(EXE) \
320        $(CHICKEN_BUG_PROGRAM)$(EXE)
321else
322CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
323CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
324CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
325CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
326TARGETLIBS ?= libchicken$(A) libuchicken$(A) \
327        $(LIBCHICKEN_SO_FILE) $(LIBUCHICKEN_SO_FILE)
328TARGETS ?= $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
329        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
330        $(CSC_PROGRAM)$(EXE) $(CHICKEN_INSTALL_PROGRAM)$(EXE) $(CHICKEN_UNINSTALL_PROGRAM)$(EXE) \
331        $(CHICKEN_STATUS_PROGRAM)$(EXE) setup-download.so setup-api.so \
332        $(CHICKEN_BUG_PROGRAM)$(EXE) \
333        $(IMPORT_LIBRARIES:%=%.import.so)
334endif
335
336# main rule
337
338.PHONY: all
339
340all: buildsvnrevision $(TARGETS)
341
342buildsvnrevision:
343ifdef WINDOWS_SHELL
344        echo 0 >buildsvnrevision
345else
346        sh $(SRCDIR)svnrevision.sh
347endif
348
349# generic part of chicken-config.h
350
351ifndef CUSTOM_CHICKEN_DEFAULTS
352chicken-defaults.h: buildsvnrevision
353        echo "/* generated */" >$@
354        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
355        echo "#define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)$(EXE)\"" >>$@
356        echo "#define C_SVN_REVISION $(shell cat buildsvnrevision)" >>$@
357        echo "#ifndef C_INSTALL_CC" >>$@
358        echo "# define C_INSTALL_CC \"$(C_COMPILER)\"" >>$@
359        echo "#endif" >>$@
360        echo "#ifndef C_INSTALL_CXX" >>$@
361        echo "# define C_INSTALL_CXX \"$(CXX_COMPILER)\"" >>$@
362        echo "#endif" >>$@
363        echo "#ifndef C_INSTALL_CFLAGS" >>$@
364        echo "# define C_INSTALL_CFLAGS \"$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
365        echo "#endif" >>$@
366        echo "#ifndef C_INSTALL_LDFLAGS" >>$@
367        echo "# define C_INSTALL_LDFLAGS \"$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
368        echo "#endif" >>$@
369        echo "#ifndef C_INSTALL_SHARE_HOME" >>$@
370        echo "# define C_INSTALL_SHARE_HOME \"$(DATADIR)\"" >>$@
371        echo "#endif" >>$@
372        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
373        echo "# define C_INSTALL_BIN_HOME \"$(BINDIR)\"" >>$@
374        echo "#endif" >>$@
375        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
376        echo "# define C_INSTALL_EGG_HOME \"$(EGGDIR)\"" >>$@
377        echo "#endif" >>$@
378        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
379        echo "# define C_INSTALL_LIB_HOME \"$(LIBDIR)\"" >>$@
380        echo "#endif" >>$@
381        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
382        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(LIBDIR)\"" >>$@
383        echo "#endif" >>$@
384        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
385        echo "# define C_INSTALL_INCLUDE_HOME \"$(INCDIR)\"" >>$@
386        echo "#endif" >>$@
387        echo "#ifndef C_INSTALL_MORE_LIBS" >>$@
388        echo "# define C_INSTALL_MORE_LIBS \"$(LIBRARIES)\"" >>$@
389        echo "#endif" >>$@
390        echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>$@
391        echo "# define C_INSTALL_MORE_STATIC_LIBS \"$(LIBRARIES)\"" >>$@
392        echo "#endif" >>$@
393        echo "#ifndef C_DEFAULT_TARGET_STACK_SIZE" >>$@
394        echo "# define C_DEFAULT_TARGET_STACK_SIZE $(NURSERY)" >>$@
395        echo "#endif" >>$@
396        echo "#ifndef C_DEFAULT_TARGET_HEAP_SIZE" >>$@
397        echo "# define C_DEFAULT_TARGET_HEAP_SIZE 0" >>$@
398        echo "#endif" >>$@
399        echo "#ifndef C_STACK_GROWS_DOWNWARD" >>$@
400        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
401        echo "#endif" >>$@
402        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
403        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
404        echo "#endif" >>$@
405        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
406        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
407        echo "#endif" >>$@
408        echo "#ifndef C_TARGET_CC" >>$@
409        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
410        echo "#endif" >>$@
411        echo "#ifndef C_TARGET_CXX" >>$@
412        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
413        echo "#endif" >>$@
414        echo "#ifndef C_TARGET_CFLAGS" >>$@
415        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
416        echo "#endif" >>$@
417        echo "#ifndef C_TARGET_LDFLAGS" >>$@
418        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
419        echo "#endif" >>$@
420        echo "#ifndef C_CROSS_CHICKEN" >>$@
421        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
422        echo "#endif" >>$@
423        echo "#ifndef C_TARGET_BIN_HOME" >>$@
424        echo "# define C_TARGET_BIN_HOME \"$(TARGET_PREFIX)/bin\"" >>$@
425        echo "#endif" >>$@
426        echo "#ifndef C_TARGET_LIB_HOME" >>$@
427        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
428        echo "#endif" >>$@
429        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
430        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/lib\"" >>$@
431        echo "#endif" >>$@
432        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
433        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
434        echo "#endif" >>$@
435        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
436        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
437        echo "#endif" >>$@
438        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
439        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
440        echo "#endif" >>$@
441        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
442        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
443        echo "#endif" >>$@
444        echo "#ifndef C_CSC_PROGRAM" >>$@
445        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
446        echo "#endif" >>$@
447        echo "#ifndef C_CSI_PROGRAM" >>$@
448        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
449        echo "#endif" >>$@
450        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
451        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
452        echo "#endif" >>$@
453        echo "#ifndef C_WINDOWS_SHELL" >>$@
454ifdef WINDOWS_SHELL
455        echo "# define C_WINDOWS_SHELL 1" >>$@
456else
457        echo "# define C_WINDOWS_SHELL 0" >>$@
458endif
459        echo "#endif" >>$@
460        echo "#ifndef C_BINARY_VERSION" >>$@
461        echo "# define C_BINARY_VERSION $(BINARYVERSION)" >>$@
462        echo "#endif" >>$@
463endif
Note: See TracBrowser for help on using the repository browser.