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

Last change on this file since 12452 was 12452, checked in by elf, 12 years ago

fixed some path nonsense re: mingw

File size: 14.6 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
157# commented out this block, as it makes NO sense whatsoever
158ifneq ($(SRCDIR),$(SRCDIR))
159ifdef WINDOWS
160ifneq ($(HOSTSYSTEM),mingw32)
161PCRE_DIR ?= $(SRCDIR)pcre
162else
163endif
164PCRE_DIR ?= $(SRCDIR)pcre/
165else
166PCRE_DIR ?= $(SRCDIR)pcre/
167endif
168endif
169# end of commented out nonsense
170PCRE_DIR ?= $(SRCDIR)pcre
171C_COMPILER_PCRE_OPTIONS = -DPCRE_STATIC -DHAVE_CONFIG_H
172PCRE_INCLUDES = $(INCLUDES) -I$(PCRE_DIR)
173endif
174ifndef NOPTABLES
175C_COMPILER_PTABLES_OPTIONS ?= -DC_ENABLE_PTABLES
176endif
177INCLUDES ?= -I. -I$(SRCDIR)
178C_COMPILER_COMPILE_OPTION ?= -c
179C_COMPILER_OUTPUT_OPTION ?= -o
180C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
181
182ifdef DEBUGBUILD
183C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
184endif
185C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
186C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DNDEBUG -DC_UNSAFE_RUNTIME
187C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
188LINKER_EXECUTABLE_OPTIONS ?= -L.
189LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
190LINKER_OUTPUT_OPTION ?= -o
191LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
192LINKER_LIBRARY_OPTION ?= -l
193ifdef STATICBUILD
194LINKER_LIBRARY_PREFIX ?= lib
195LINKER_LIBRARY_SUFFIX ?= .a
196else
197LINKER_LIBRARY_PREFIX ?= -l
198LINKER_LIBRARY_SUFFIX ?= 
199endif
200LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
201LIBRARIAN_OPTIONS ?= cru
202LIBRARIAN_OUTPUT_OPTION ?=
203LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
204LIBRARIES ?= -lm
205ifeq ($(PLATFORM),mingw)
206REMOVE_COMMAND_OPTIONS ?= /f /q
207REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
208MAKE_WRITABLE_COMMAND ?= rem
209else
210REMOVE_COMMAND_OPTIONS ?= -f
211REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
212MAKE_WRITABLE_COMMAND ?= chmod a+rw
213endif
214MAKEINFO_PROGRAM_OPTIONS ?= --no-split
215ifneq ($(PLATFORM),mingw)
216INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
217INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
218INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
219INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
220MAKEDIR_COMMAND_OPTIONS ?= -p
221endif
222ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
223ASSEMBLER_OUTPUT_OPTION ?= -o
224ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
225ASSEMBLER_COMPILE_OPTION ?= -c
226ifdef STATICBUILD
227PRIMARY_LIBCHICKEN ?= libchicken$(A)
228else
229ifeq ($(PLATFORM),cygwin)
230PRIMARY_LIBCHICKEN = cygchicken-0.dll
231LIBCHICKEN_SO_FILE = cygchicken-0.dll
232LIBUCHICKEN_SO_FILE = cyguchicken-0.dll
233LIBCHICKENGUI_SO_FILE ?= 
234else
235PRIMARY_LIBCHICKEN ?= libchicken$(SO)$(SONAME_VERSION)
236LIBCHICKEN_SO_FILE ?= libchicken$(SO)$(SONAME_VERSION)
237LIBUCHICKEN_SO_FILE ?= libuchicken$(SO)$(SONAME_VERSION)
238LIBCHICKENGUI_SO_FILE ?= 
239endif
240endif
241UNINSTALLINFO_PROGRAM_OPTIONS ?= --delete
242LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
243LIBUCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
244LIBCHICKENGUI_SO_LIBRARIES ?= $(LIBRARIES)
245
246# other settings
247
248HOSTNAME ?= $(shell hostname)
249ifeq ($(PLATFORM),mingw)
250BUILD_TIME ?= $(shell date /t)
251UNAME_SYS ?= MinGW
252else
253BUILD_TIME ?= $(shell date +%Y-%m-%d)
254UNAME_SYS ?= $(shell uname)
255endif
256BUILD_TAG ?= compiled $(BUILD_TIME) on $(HOSTNAME) ($(UNAME_SYS))
257
258ifdef LOCKTOSPACE
259C_COMPILER_BUILD_RUNTIME_OPTIONS += -DC_LOCK_TOSPACE
260endif
261
262
263# file extensions
264
265O ?= .o
266A ?= .a
267# EXE ?=
268SO ?= .so
269ASM ?= .s
270
271# special files
272
273POSIXFILE ?= posixunix
274CHICKEN_CONFIG_H = chicken-config.h
275
276ifneq ($(ARCH),)
277HACKED_APPLY ?= 1
278APPLY_HACK_SRC ?= apply-hack.$(ARCH)$(ASM)
279APPLY_HACK_OBJECT ?= apply-hack.$(ARCH)$(O)
280endif
281
282# bootstrapping compiler
283
284CHICKEN = chicken$(EXE)
285
286# Scheme compiler flags
287
288CHICKEN_OPTIONS = \
289        -quiet -no-trace -optimize-level 2 \
290        -include-path . -include-path $(SRCDIR)
291CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
292CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info
293CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
294CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
295
296ifneq ($(USE_HOST_PCRE),)
297CHICKEN_PCRE_LIBRARY_OPTIONS = 
298else
299CHICKEN_PCRE_LIBRARY_OPTIONS = -include-path $(SRCDIR)pcre
300endif
301
302# targets
303
304CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
305CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
306CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
307CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
308CHICKEN_SETUP_PROGRAM = $(PROGRAM_PREFIX)chicken-setup$(PROGRAM_SUFFIX)
309CHICKEN_BUG_PROGRAM = $(PROGRAM_PREFIX)chicken-bug$(PROGRAM_SUFFIX)
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.info $(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_SETUP_PROGRAM)$(EXE) chicken.info \
331        $(CHICKEN_BUG_PROGRAM)$(EXE)
332endif
333
334# main rule
335
336.PHONY: all
337
338ifdef NO_UNIX_SHELL
339all: $(TARGETS)
340else
341all: buildsvnrevision $(TARGETS)
342endif
343
344buildsvnrevision:
345        sh $(SRCDIR)/svnrevision.sh
346ifeq ($(USE_HOST_PCRE),)
347        $(MAKEDIR_COMMAND) $(MAKEDIR_COMMAND_OPTIONS) pcre
348endif
349
350# generic part of chicken-config.h
351
352ifndef CUSTOM_CHICKEN_DEFAULTS
353chicken-defaults.h: buildsvnrevision
354        echo "/* generated */" >$@
355        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
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 \"$(IDATADIR)\"" >>$@
371        echo "#endif" >>$@
372        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
373        echo "# define C_INSTALL_BIN_HOME \"$(IBINDIR)\"" >>$@
374        echo "#endif" >>$@
375        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
376        echo "# define C_INSTALL_EGG_HOME \"$(IEGGDIR)\"" >>$@
377        echo "#endif" >>$@
378        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
379        echo "# define C_INSTALL_LIB_HOME \"$(ILIBDIR)\"" >>$@
380        echo "#endif" >>$@
381        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
382        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(ILIBDIR)\"" >>$@
383        echo "#endif" >>$@
384        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
385        echo "# define C_INSTALL_INCLUDE_HOME \"$(IINCDIR)\"" >>$@
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_STACK_GROWS_DOWNWARD" >>$@
397        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
398        echo "#endif" >>$@
399        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
400        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
401        echo "#endif" >>$@
402        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
403        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
404        echo "#endif" >>$@
405        echo "#ifndef C_TARGET_CC" >>$@
406        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
407        echo "#endif" >>$@
408        echo "#ifndef C_TARGET_CXX" >>$@
409        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
410        echo "#endif" >>$@
411        echo "#ifndef C_TARGET_CFLAGS" >>$@
412        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
413        echo "#endif" >>$@
414        echo "#ifndef C_TARGET_LDFLAGS" >>$@
415        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
416        echo "#endif" >>$@
417        echo "#ifndef C_CROSS_CHICKEN" >>$@
418        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
419        echo "#endif" >>$@
420ifdef WINDOWS
421        echo "#ifndef C_TARGET_LIB_HOME" >>$@
422        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
423        echo "#endif" >>$@
424        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
425        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)\\lib\"" >>$@
426        echo "#endif" >>$@
427        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
428        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)\\share\"" >>$@
429        echo "#endif" >>$@
430        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
431        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)\\include\"" >>$@
432        echo "#endif" >>$@
433        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
434        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
435        echo "#endif" >>$@
436else
437        echo "#ifndef C_TARGET_LIB_HOME" >>$@
438        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
439        echo "#endif" >>$@
440        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
441        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/lib\"" >>$@
442        echo "#endif" >>$@
443        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
444        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
445        echo "#endif" >>$@
446        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
447        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
448        echo "#endif" >>$@
449        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
450        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
451        echo "#endif" >>$@
452endif
453        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
454        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
455        echo "#endif" >>$@
456        echo "#ifndef C_CSC_PROGRAM" >>$@
457        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
458        echo "#endif" >>$@
459        echo "#ifndef C_CSI_PROGRAM" >>$@
460        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
461        echo "#endif" >>$@
462        echo "#ifndef C_CHICKEN_PROFILE_PROGRAM" >>$@
463        echo "# define C_CHICKEN_PROFILE_PROGRAM \"$(CHICKEN_PROFILE_PROGRAM)\"" >>$@
464        echo "#endif" >>$@
465        echo "#ifndef C_CHICKEN_SETUP_PROGRAM" >>$@
466        echo "# define C_CHICKEN_SETUP_PROGRAM \"$(CHICKEN_SETUP_PROGRAM)\"" >>$@
467        echo "#endif" >>$@
468        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
469        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
470        echo "#endif" >>$@
471        echo "#ifndef C_BINARY_VERSION" >>$@
472        echo "# define C_BINARY_VERSION $(BINARYVERSION)" >>$@
473        echo "#endif" >>$@
474endif
Note: See TracBrowser for help on using the repository browser.