source: project/chicken/branches/chicken-3/defaults.make @ 13412

Last change on this file since 13412 was 13412, checked in by elf, 11 years ago

mingw works again. finally.
chicken-setup needs some major work to make it work correctly on windows, as
whenever it got changed recently, all the defaults and orderings are
unfriendly, to say the least, with windows. thers also some naming issues
that cause conflicts in vista.

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