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

Last change on this file since 13948 was 13948, checked in by Kon Lovett, 10 years ago

No srandomev for any Linux. Added LINKER_OPTIMIZATION_OPTIONS to TARGET_LINKER_OPTIMIZATION_OPTIONS.

File size: 14.8 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 = \
283        -no-trace -optimize-level 2 \
284        -include-path . -include-path $(SRCDIR)
285ifdef DEBUGBUILD
286CHICKEN_OPTIONS += -feature debugbuild
287endif
288CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
289CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info -inline -local
290CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
291CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
292CHICKEN_DYNAMIC_OPTIONS = $(CHICKEN_OPTIONS) -feature chicken-compile-shared -dynamic
293CHICKEN_IMPORT_LIBRARY_OPTIONS = $(CHICKEN_DYNAMIC_OPTIONS)
294
295# targets
296
297CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
298CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
299CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
300CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
301CHICKEN_INSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-install$(PROGRAM_SUFFIX)
302CHICKEN_UNINSTALL_PROGRAM = $(PROGRAM_PREFIX)chicken-uninstall$(PROGRAM_SUFFIX)
303CHICKEN_STATUS_PROGRAM = $(PROGRAM_PREFIX)chicken-status$(PROGRAM_SUFFIX)
304CHICKEN_BUG_PROGRAM = $(PROGRAM_PREFIX)chicken-bug$(PROGRAM_SUFFIX)
305IMPORT_LIBRARIES = chicken lolevel srfi-1 srfi-4 data-structures ports files posix srfi-13 srfi-69 extras \
306        regex srfi-14 tcp foreign compiler scheme srfi-18 utils csi irregex
307IMPORT_LIBRARIES += setup-api setup-download
308
309ifdef STATICBUILD
310CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
311CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
312CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
313CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
314TARGETLIBS ?= libchicken$(A) libuchicken$(A)
315TARGETS ?= $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
316        $(CSI_STATIC_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
317        $(CSC_PROGRAM)$(EXE) \
318        $(CHICKEN_BUG_PROGRAM)$(EXE)
319else
320CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
321CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
322CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
323CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
324TARGETLIBS ?= libchicken$(A) libuchicken$(A) \
325        $(LIBCHICKEN_SO_FILE) $(LIBUCHICKEN_SO_FILE)
326TARGETS ?= $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
327        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
328        $(CSC_PROGRAM)$(EXE) $(CHICKEN_INSTALL_PROGRAM)$(EXE) $(CHICKEN_UNINSTALL_PROGRAM)$(EXE) \
329        $(CHICKEN_STATUS_PROGRAM)$(EXE) setup-download.so setup-api.so \
330        $(CHICKEN_BUG_PROGRAM)$(EXE) \
331        $(IMPORT_LIBRARIES:%=%.import.so)
332endif
333
334# main rule
335
336.PHONY: all
337
338all: buildsvnrevision $(TARGETS)
339
340buildsvnrevision:
341ifdef WINDOWS_SHELL
342        echo 0 >buildsvnrevision
343else
344        sh $(SRCDIR)svnrevision.sh
345endif
346
347# generic part of chicken-config.h
348
349ifndef CUSTOM_CHICKEN_DEFAULTS
350chicken-defaults.h: buildsvnrevision
351        echo "/* generated */" >$@
352        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
353        echo "#define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)$(EXE)\"" >>$@
354        echo "#define C_SVN_REVISION $(shell cat buildsvnrevision)" >>$@
355        echo "#ifndef C_INSTALL_CC" >>$@
356        echo "# define C_INSTALL_CC \"$(C_COMPILER)\"" >>$@
357        echo "#endif" >>$@
358        echo "#ifndef C_INSTALL_CXX" >>$@
359        echo "# define C_INSTALL_CXX \"$(CXX_COMPILER)\"" >>$@
360        echo "#endif" >>$@
361        echo "#ifndef C_INSTALL_CFLAGS" >>$@
362        echo "# define C_INSTALL_CFLAGS \"$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
363        echo "#endif" >>$@
364        echo "#ifndef C_INSTALL_LDFLAGS" >>$@
365        echo "# define C_INSTALL_LDFLAGS \"$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
366        echo "#endif" >>$@
367        echo "#ifndef C_INSTALL_SHARE_HOME" >>$@
368        echo "# define C_INSTALL_SHARE_HOME \"$(DATADIR)\"" >>$@
369        echo "#endif" >>$@
370        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
371        echo "# define C_INSTALL_BIN_HOME \"$(BINDIR)\"" >>$@
372        echo "#endif" >>$@
373        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
374        echo "# define C_INSTALL_EGG_HOME \"$(EGGDIR)\"" >>$@
375        echo "#endif" >>$@
376        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
377        echo "# define C_INSTALL_LIB_HOME \"$(LIBDIR)\"" >>$@
378        echo "#endif" >>$@
379        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
380        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(LIBDIR)\"" >>$@
381        echo "#endif" >>$@
382        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
383        echo "# define C_INSTALL_INCLUDE_HOME \"$(INCDIR)\"" >>$@
384        echo "#endif" >>$@
385        echo "#ifndef C_INSTALL_MORE_LIBS" >>$@
386        echo "# define C_INSTALL_MORE_LIBS \"$(LIBRARIES)\"" >>$@
387        echo "#endif" >>$@
388        echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>$@
389        echo "# define C_INSTALL_MORE_STATIC_LIBS \"$(LIBRARIES)\"" >>$@
390        echo "#endif" >>$@
391        echo "#ifndef C_DEFAULT_TARGET_STACK_SIZE" >>$@
392        echo "# define C_DEFAULT_TARGET_STACK_SIZE $(NURSERY)" >>$@
393        echo "#endif" >>$@
394        echo "#ifndef C_DEFAULT_TARGET_HEAP_SIZE" >>$@
395        echo "# define C_DEFAULT_TARGET_HEAP_SIZE 0" >>$@
396        echo "#endif" >>$@
397        echo "#ifndef C_STACK_GROWS_DOWNWARD" >>$@
398        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
399        echo "#endif" >>$@
400        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
401        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
402        echo "#endif" >>$@
403        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
404        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
405        echo "#endif" >>$@
406        echo "#ifndef C_TARGET_CC" >>$@
407        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
408        echo "#endif" >>$@
409        echo "#ifndef C_TARGET_CXX" >>$@
410        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
411        echo "#endif" >>$@
412        echo "#ifndef C_TARGET_CFLAGS" >>$@
413        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
414        echo "#endif" >>$@
415        echo "#ifndef C_TARGET_LDFLAGS" >>$@
416        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
417        echo "#endif" >>$@
418        echo "#ifndef C_CROSS_CHICKEN" >>$@
419        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
420        echo "#endif" >>$@
421        echo "#ifndef C_TARGET_BIN_HOME" >>$@
422        echo "# define C_TARGET_BIN_HOME \"$(TARGET_PREFIX)/bin\"" >>$@
423        echo "#endif" >>$@
424        echo "#ifndef C_TARGET_LIB_HOME" >>$@
425        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
426        echo "#endif" >>$@
427        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
428        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/lib\"" >>$@
429        echo "#endif" >>$@
430        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
431        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
432        echo "#endif" >>$@
433        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
434        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
435        echo "#endif" >>$@
436        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
437        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
438        echo "#endif" >>$@
439        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
440        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
441        echo "#endif" >>$@
442        echo "#ifndef C_CSC_PROGRAM" >>$@
443        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
444        echo "#endif" >>$@
445        echo "#ifndef C_CSI_PROGRAM" >>$@
446        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
447        echo "#endif" >>$@
448        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
449        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
450        echo "#endif" >>$@
451        echo "#ifndef C_WINDOWS_SHELL" >>$@
452ifdef WINDOWS_SHELL
453        echo "# define C_WINDOWS_SHELL 1" >>$@
454else
455        echo "# define C_WINDOWS_SHELL 0" >>$@
456endif
457        echo "#endif" >>$@
458        echo "#ifndef C_BINARY_VERSION" >>$@
459        echo "# define C_BINARY_VERSION $(BINARYVERSION)" >>$@
460        echo "#endif" >>$@
461endif
Note: See TracBrowser for help on using the repository browser.