source: project/chicken/branches/release/defaults.make @ 11976

Last change on this file since 11976 was 11976, checked in by Ivan Raikov, 12 years ago

Merged prerelease with release.

File size: 14.4 KB
Line 
1# defaults.make - default settings -*- Makefile -*-
2#
3# Copyright (c) 2007, Felix L. Winkelmann
4# Copyright (c) 2008, 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 = 3
31STACKDIRECTION ?= 1
32CROSS_CHICKEN ?= 0
33
34ifeq ($(ARCH),x86-64)
35NURSERY ?= (256*1024)
36else
37NURSERY ?= (128*1024)
38endif
39
40# directories
41
42SRCDIR ?= ./
43
44DESTDIR ?=
45
46ifeq ($(PLATFORM),mingw-msys)
47PREFIX ?= c:/devtools
48else
49ifeq ($(PLATFORM),mingw)
50PREFIX ?= c:\\devtools
51else
52PREFIX ?= /usr/local
53endif
54endif
55
56BINDIR = $(PREFIX)/bin
57LIBDIR = $(PREFIX)/lib
58SHAREDIR = $(PREFIX)/share
59DATADIR = $(SHAREDIR)/chicken
60TOPMANDIR = $(SHAREDIR)/man
61MANDIR = $(TOPMANDIR)/man1
62INFODIR = $(SHAREDIR)/info
63INCDIR = $(PREFIX)/include
64DOCDIR = $(DATADIR)/doc
65CHICKENLIBDIR = $(LIBDIR)/chicken
66EGGDIR = $(CHICKENLIBDIR)/$(BINARYVERSION)
67
68ifeq ($(PLATFORM),mingw)
69IBINDIR = $(PREFIX)\\bin
70ILIBDIR = $(PREFIX)\\lib
71ISHAREDIR = $(PREFIX)\\share
72IDATADIR = $(ISHAREDIR)\\chicken
73ITOPMANDIR = $(ISHAREDIR)\\man
74IMANDIR = $(ITOPMANDIR)\\man1
75IINFODIR = $(ISHAREDIR)\\info
76IINCDIR = $(PREFIX)\\include
77IDOCDIR = $(IDATADIR)\\doc
78ICHICKENLIBDIR = $(ILIBDIR)\\chicken
79IEGGDIR = $(ICHICKENLIBDIR)\\$(BINARYVERSION)
80else
81IBINDIR = $(BINDIR)
82ILIBDIR = $(LIBDIR)
83ISHAREDIR = $(SHAREDIR)
84IDATADIR = $(DATADIR)
85ITOPMANDIR = $(TOPMANDIR)
86IMANDIR = $(MANDIR)
87IINFODIR = $(INFODIR)
88IINCDIR = $(INCDIR)
89IDOCDIR = $(DOCDIR)
90ICHICKENLIBDIR = $(CHICKENLIBDIR)
91IEGGDIR = $(EGGDIR)
92endif
93
94# commands
95
96ifdef HOSTSYSTEM
97C_COMPILER ?= $(HOSTSYSTEM)-gcc
98CXX_COMPILER ?= $(HOSTSYSTEM)-g++
99LIBRARIAN ?= $(HOSTSYSTEM)-ar
100else
101C_COMPILER ?= gcc
102CXX_COMPILER ?= g++
103LIBRARIAN ?= ar
104endif
105LINKER ?= $(C_COMPILER)
106ifeq ($(PLATFORM),mingw)
107REMOVE_COMMAND ?= del
108else
109REMOVE_COMMAND ?= rm
110endif
111ASSEMBLER ?= $(C_COMPILER)
112MAKEINFO_PROGRAM ?= -makeinfo
113ifeq ($(PLATFORM),mingw)
114INSTALL_PROGRAM ?= copy
115MAKEDIR_COMMAND ?= -mkdir
116else
117INSTALL_PROGRAM ?= install
118MAKEDIR_COMMAND ?= mkdir
119endif
120POSTINSTALL_STATIC_LIBRARY ?= true
121POSTINSTALL_PROGRAM ?= true
122INSTALLINFO_PROGRAM ?= -install-info
123UNINSTALLINFO_PROGRAM ?= -install-info
124
125# target variables
126
127ifdef TARGETSYSTEM
128TARGET_C_COMPILER ?= $(TARGETSYSTEM)-$(C_COMPILER)
129TARGET_CXX_COMPILER ?= $(TARGETSYSTEM)-$(CXX_COMPILER)
130else
131TARGET_C_COMPILER ?= $(C_COMPILER)
132TARGET_CXX_COMPILER ?= $(CXX_COMPILER)
133endif
134
135TARGET_C_COMPILER_OPTIONS ?= $(C_COMPILER_OPTIONS)
136TARGET_C_COMPILER_OPTIMIZATION_OPTIONS ?= $(C_COMPILER_OPTIMIZATION_OPTIONS)
137TARGET_PREFIX ?= $(PREFIX)
138TARGET_RUN_PREFIX ?= $(TARGET_PREFIX)
139TARGET_LIBRARIES ?= $(LIBRARIES)
140TARGET_LINKER_OPTIONS ?= $(LINKER_OPTIONS)
141
142ifneq ($(TARGET_C_COMPILER),$(C_COMPILER))
143CROSS_CHICKEN = 1
144else
145CROSS_CHICKEN = 0
146endif
147
148
149# options
150
151ifneq ($(USE_HOST_PCRE),)
152LIBRARIES += -lpcre
153PCRE_INCLUDES =
154C_COMPILER_PCRE_OPTIONS =
155PCRE_OBJECTS_1 =
156else
157ifdef WINDOWS
158ifneq ($(HOSTSYSTEM),mingw32)
159PCRE_DIR ?= $(SRCDIR)pcre\\
160else
161endif
162PCRE_DIR ?= $(SRCDIR)pcre/
163else
164PCRE_DIR ?= $(SRCDIR)pcre/
165endif
166C_COMPILER_PCRE_OPTIONS = -DPCRE_STATIC -DHAVE_CONFIG_H
167PCRE_INCLUDES = $(INCLUDES) -I$(PCRE_DIR)
168endif
169ifndef NOPTABLES
170C_COMPILER_PTABLES_OPTIONS ?= -DC_ENABLE_PTABLES
171endif
172INCLUDES ?= -I. -I$(SRCDIR)
173C_COMPILER_COMPILE_OPTION ?= -c
174C_COMPILER_OUTPUT_OPTION ?= -o
175C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
176
177ifdef DEBUGBUILD
178C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
179endif
180C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
181C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DNDEBUG -DC_UNSAFE_RUNTIME
182C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
183LINKER_EXECUTABLE_OPTIONS ?= -L.
184LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
185LINKER_OUTPUT_OPTION ?= -o
186LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
187LINKER_LIBRARY_OPTION ?= -l
188ifdef STATICBUILD
189LINKER_LIBRARY_PREFIX ?= lib
190LINKER_LIBRARY_SUFFIX ?= .a
191else
192LINKER_LIBRARY_PREFIX ?= -l
193LINKER_LIBRARY_SUFFIX ?= 
194endif
195LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
196LIBRARIAN_OPTIONS ?= cru
197LIBRARIAN_OUTPUT_OPTION ?=
198LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
199LIBRARIES ?= -lm
200ifeq ($(PLATFORM),mingw)
201REMOVE_COMMAND_OPTIONS ?= /f /q
202REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
203MAKE_WRITABLE_COMMAND ?= rem
204else
205REMOVE_COMMAND_OPTIONS ?= -f
206REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
207MAKE_WRITABLE_COMMAND ?= chmod a+rw
208endif
209MAKEINFO_PROGRAM_OPTIONS ?= --no-split
210ifneq ($(PLATFORM),mingw)
211INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
212INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
213INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
214INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
215MAKEDIR_COMMAND_OPTIONS ?= -p
216endif
217ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
218ASSEMBLER_OUTPUT_OPTION ?= -o
219ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
220ASSEMBLER_COMPILE_OPTION ?= -c
221ifdef STATICBUILD
222PRIMARY_LIBCHICKEN ?= libchicken$(A)
223else
224ifeq ($(PLATFORM),cygwin)
225PRIMARY_LIBCHICKEN = cygchicken-0.dll
226LIBCHICKEN_SO_FILE = cygchicken-0.dll
227LIBUCHICKEN_SO_FILE = cyguchicken-0.dll
228LIBCHICKENGUI_SO_FILE ?= 
229else
230PRIMARY_LIBCHICKEN ?= libchicken$(SO)$(SONAME_VERSION)
231LIBCHICKEN_SO_FILE ?= libchicken$(SO)$(SONAME_VERSION)
232LIBUCHICKEN_SO_FILE ?= libuchicken$(SO)$(SONAME_VERSION)
233LIBCHICKENGUI_SO_FILE ?= 
234endif
235endif
236UNINSTALLINFO_PROGRAM_OPTIONS ?= --delete
237LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
238LIBUCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
239LIBCHICKENGUI_SO_LIBRARIES ?= $(LIBRARIES)
240
241# other settings
242
243HOSTNAME ?= $(shell hostname)
244ifeq ($(PLATFORM),mingw)
245BUILD_TIME ?= $(shell date /t)
246UNAME_SYS ?= MinGW
247else
248BUILD_TIME ?= $(shell date +%Y-%m-%d)
249UNAME_SYS ?= $(shell uname)
250endif
251BUILD_TAG ?= compiled $(BUILD_TIME) on $(HOSTNAME) ($(UNAME_SYS))
252
253ifdef LOCKTOSPACE
254C_COMPILER_BUILD_RUNTIME_OPTIONS += -DC_LOCK_TOSPACE
255endif
256
257
258# file extensions
259
260O ?= .o
261A ?= .a
262# EXE ?=
263SO ?= .so
264ASM ?= .s
265
266# special files
267
268POSIXFILE ?= posixunix
269CHICKEN_CONFIG_H = chicken-config.h
270
271ifneq ($(ARCH),)
272HACKED_APPLY ?= 1
273APPLY_HACK_SRC ?= apply-hack.$(ARCH)$(ASM)
274APPLY_HACK_OBJECT ?= apply-hack.$(ARCH)$(O)
275endif
276
277# bootstrapping compiler
278
279CHICKEN = chicken$(EXE)
280
281# Scheme compiler flags
282
283CHICKEN_OPTIONS = \
284        -quiet -no-trace -optimize-level 2 \
285        -include-path . -include-path $(SRCDIR)
286CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
287CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info
288CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
289CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
290
291ifneq ($(USE_HOST_PCRE),)
292CHICKEN_PCRE_LIBRARY_OPTIONS = 
293else
294CHICKEN_PCRE_LIBRARY_OPTIONS = -include-path $(SRCDIR)pcre
295endif
296
297# targets
298
299CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
300CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
301CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
302CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
303CHICKEN_SETUP_PROGRAM = $(PROGRAM_PREFIX)chicken-setup$(PROGRAM_SUFFIX)
304CHICKEN_BUG_PROGRAM = $(PROGRAM_PREFIX)chicken-bug$(PROGRAM_SUFFIX)
305
306ifdef STATICBUILD
307CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
308CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
309CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
310CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
311TARGETLIBS ?= libchicken$(A) libuchicken$(A)
312TARGETS ?= $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
313        $(CSI_STATIC_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
314        $(CSC_PROGRAM)$(EXE) \
315        chicken.info $(CHICKEN_BUG_PROGRAM)$(EXE)
316else
317CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
318CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
319CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
320CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
321TARGETLIBS ?= libchicken$(A) libuchicken$(A) \
322        $(LIBCHICKEN_SO_FILE) $(LIBUCHICKEN_SO_FILE)
323TARGETS ?= $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
324        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
325        $(CSC_PROGRAM)$(EXE) $(CHICKEN_SETUP_PROGRAM)$(EXE) chicken.info \
326        $(CHICKEN_BUG_PROGRAM)$(EXE)
327endif
328
329# main rule
330
331.PHONY: all
332
333ifdef NO_UNIX_SHELL
334all: $(TARGETS)
335else
336all: buildsvnrevision $(TARGETS)
337endif
338
339buildsvnrevision:
340        sh $(SRCDIR)/svnrevision.sh
341ifeq ($(USE_HOST_PCRE),)
342        $(MAKEDIR_COMMAND) $(MAKEDIR_COMMAND_OPTIONS) pcre
343endif
344
345# generic part of chicken-config.h
346
347ifndef CUSTOM_CHICKEN_DEFAULTS
348chicken-defaults.h: buildsvnrevision
349        echo "/* generated */" >$@
350        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
351        echo "#define C_SVN_REVISION $(shell cat buildsvnrevision)" >>$@
352        echo "#ifndef C_INSTALL_CC" >>$@
353        echo "# define C_INSTALL_CC \"$(C_COMPILER)\"" >>$@
354        echo "#endif" >>$@
355        echo "#ifndef C_INSTALL_CXX" >>$@
356        echo "# define C_INSTALL_CXX \"$(CXX_COMPILER)\"" >>$@
357        echo "#endif" >>$@
358        echo "#ifndef C_INSTALL_CFLAGS" >>$@
359        echo "# define C_INSTALL_CFLAGS \"$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
360        echo "#endif" >>$@
361        echo "#ifndef C_INSTALL_LDFLAGS" >>$@
362        echo "# define C_INSTALL_LDFLAGS \"$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
363        echo "#endif" >>$@
364        echo "#ifndef C_INSTALL_SHARE_HOME" >>$@
365        echo "# define C_INSTALL_SHARE_HOME \"$(IDATADIR)\"" >>$@
366        echo "#endif" >>$@
367        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
368        echo "# define C_INSTALL_BIN_HOME \"$(IBINDIR)\"" >>$@
369        echo "#endif" >>$@
370        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
371        echo "# define C_INSTALL_EGG_HOME \"$(IEGGDIR)\"" >>$@
372        echo "#endif" >>$@
373        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
374        echo "# define C_INSTALL_LIB_HOME \"$(ILIBDIR)\"" >>$@
375        echo "#endif" >>$@
376        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
377        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(ILIBDIR)\"" >>$@
378        echo "#endif" >>$@
379        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
380        echo "# define C_INSTALL_INCLUDE_HOME \"$(IINCDIR)\"" >>$@
381        echo "#endif" >>$@
382        echo "#ifndef C_INSTALL_MORE_LIBS" >>$@
383        echo "# define C_INSTALL_MORE_LIBS \"$(LIBRARIES)\"" >>$@
384        echo "#endif" >>$@
385        echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>$@
386        echo "# define C_INSTALL_MORE_STATIC_LIBS \"$(LIBRARIES)\"" >>$@
387        echo "#endif" >>$@
388        echo "#ifndef C_DEFAULT_TARGET_STACK_SIZE" >>$@
389        echo "# define C_DEFAULT_TARGET_STACK_SIZE $(NURSERY)" >>$@
390        echo "#endif" >>$@
391        echo "#ifndef C_STACK_GROWS_DOWNWARD" >>$@
392        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
393        echo "#endif" >>$@
394        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
395        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
396        echo "#endif" >>$@
397        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
398        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
399        echo "#endif" >>$@
400        echo "#ifndef C_TARGET_CC" >>$@
401        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
402        echo "#endif" >>$@
403        echo "#ifndef C_TARGET_CXX" >>$@
404        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
405        echo "#endif" >>$@
406        echo "#ifndef C_TARGET_CFLAGS" >>$@
407        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
408        echo "#endif" >>$@
409        echo "#ifndef C_TARGET_LDFLAGS" >>$@
410        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
411        echo "#endif" >>$@
412        echo "#ifndef C_CROSS_CHICKEN" >>$@
413        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
414        echo "#endif" >>$@
415ifdef WINDOWS
416        echo "#ifndef C_TARGET_LIB_HOME" >>$@
417        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
418        echo "#endif" >>$@
419        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
420        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)\\lib\"" >>$@
421        echo "#endif" >>$@
422        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
423        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)\\share\"" >>$@
424        echo "#endif" >>$@
425        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
426        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)\\include\"" >>$@
427        echo "#endif" >>$@
428        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
429        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
430        echo "#endif" >>$@
431else
432        echo "#ifndef C_TARGET_LIB_HOME" >>$@
433        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
434        echo "#endif" >>$@
435        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
436        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/lib\"" >>$@
437        echo "#endif" >>$@
438        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
439        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
440        echo "#endif" >>$@
441        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
442        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
443        echo "#endif" >>$@
444        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
445        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
446        echo "#endif" >>$@
447endif
448        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
449        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
450        echo "#endif" >>$@
451        echo "#ifndef C_CSC_PROGRAM" >>$@
452        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
453        echo "#endif" >>$@
454        echo "#ifndef C_CSI_PROGRAM" >>$@
455        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
456        echo "#endif" >>$@
457        echo "#ifndef C_CHICKEN_PROFILE_PROGRAM" >>$@
458        echo "# define C_CHICKEN_PROFILE_PROGRAM \"$(CHICKEN_PROFILE_PROGRAM)\"" >>$@
459        echo "#endif" >>$@
460        echo "#ifndef C_CHICKEN_SETUP_PROGRAM" >>$@
461        echo "# define C_CHICKEN_SETUP_PROGRAM \"$(CHICKEN_SETUP_PROGRAM)\"" >>$@
462        echo "#endif" >>$@
463        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
464        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
465        echo "#endif" >>$@
466        echo "#ifndef C_BINARY_VERSION" >>$@
467        echo "# define C_BINARY_VERSION $(BINARYVERSION)" >>$@
468        echo "#endif" >>$@
469endif
Note: See TracBrowser for help on using the repository browser.