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

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

maybe?

File size: 13.9 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
151ifndef NOPTABLES
152C_COMPILER_PTABLES_OPTIONS ?= -DC_ENABLE_PTABLES
153endif
154INCLUDES ?= -I. -I$(SRCDIR)
155C_COMPILER_COMPILE_OPTION ?= -c
156C_COMPILER_OUTPUT_OPTION ?= -o
157C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
158
159ifdef DEBUGBUILD
160C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
161endif
162C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
163C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DNDEBUG -DC_UNSAFE_RUNTIME
164C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
165LINKER_EXECUTABLE_OPTIONS ?= -L.
166LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
167LINKER_OUTPUT_OPTION ?= -o
168LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
169LINKER_LIBRARY_OPTION ?= -l
170ifdef STATICBUILD
171LINKER_LIBRARY_PREFIX ?= lib
172LINKER_LIBRARY_SUFFIX ?= .a
173else
174LINKER_LIBRARY_PREFIX ?= -l
175LINKER_LIBRARY_SUFFIX ?= 
176endif
177LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
178LIBRARIAN_OPTIONS ?= cru
179LIBRARIAN_OUTPUT_OPTION ?=
180LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
181LIBRARIES ?= -lm
182ifeq ($(PLATFORM),mingw)
183REMOVE_COMMAND_OPTIONS ?= /f /q
184REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
185MAKE_WRITABLE_COMMAND ?= rem
186else
187REMOVE_COMMAND_OPTIONS ?= -f
188REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
189MAKE_WRITABLE_COMMAND ?= chmod 0755
190endif
191MAKEINFO_PROGRAM_OPTIONS ?= --no-split
192ifneq ($(PLATFORM),mingw)
193INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
194INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
195INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
196INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
197MAKEDIR_COMMAND_OPTIONS ?= -p
198endif
199ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
200ASSEMBLER_OUTPUT_OPTION ?= -o
201ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
202ASSEMBLER_COMPILE_OPTION ?= -c
203ifdef STATICBUILD
204PRIMARY_LIBCHICKEN ?= libchicken$(A)
205else
206ifeq ($(PLATFORM),cygwin)
207PRIMARY_LIBCHICKEN = cygchicken-0.dll
208LIBCHICKEN_SO_FILE = cygchicken-0.dll
209LIBUCHICKEN_SO_FILE = cyguchicken-0.dll
210LIBCHICKENGUI_SO_FILE ?= 
211else
212PRIMARY_LIBCHICKEN ?= libchicken$(SO)$(SONAME_VERSION)
213LIBCHICKEN_SO_FILE ?= libchicken$(SO)$(SONAME_VERSION)
214LIBUCHICKEN_SO_FILE ?= libuchicken$(SO)$(SONAME_VERSION)
215LIBCHICKENGUI_SO_FILE ?= 
216endif
217endif
218UNINSTALLINFO_PROGRAM_OPTIONS ?= --delete
219LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
220LIBUCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
221LIBCHICKENGUI_SO_LIBRARIES ?= $(LIBRARIES)
222
223# other settings
224
225HOSTNAME ?= $(shell hostname)
226ifeq ($(PLATFORM),mingw)
227BUILD_TIME ?= $(shell date /t)
228UNAME_SYS ?= MinGW
229else
230BUILD_TIME ?= $(shell date +%Y-%m-%d)
231UNAME_SYS ?= $(shell uname)
232endif
233BUILD_TAG ?= compiled $(BUILD_TIME) on $(HOSTNAME) ($(UNAME_SYS))
234
235ifdef LOCKTOSPACE
236C_COMPILER_BUILD_RUNTIME_OPTIONS += -DC_LOCK_TOSPACE
237endif
238
239
240# file extensions
241
242O ?= .o
243A ?= .a
244# EXE ?=
245SO ?= .so
246ASM ?= .s
247
248# special files
249
250POSIXFILE ?= posixunix
251CHICKEN_CONFIG_H = chicken-config.h
252
253ifneq ($(ARCH),)
254HACKED_APPLY ?= 1
255APPLY_HACK_SRC ?= apply-hack.$(ARCH)$(ASM)
256APPLY_HACK_OBJECT ?= apply-hack.$(ARCH)$(O)
257endif
258
259# bootstrapping compiler
260
261CHICKEN = chicken$(EXE)
262
263# Scheme compiler flags
264
265CHICKEN_OPTIONS = \
266        -quiet -no-trace -optimize-level 2 \
267        -include-path . -include-path $(SRCDIR)
268CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
269CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info
270CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
271CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
272
273# targets
274
275CHICKEN_PROGRAM = $(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
276CSC_PROGRAM = $(PROGRAM_PREFIX)csc$(PROGRAM_SUFFIX)
277CSI_PROGRAM = $(PROGRAM_PREFIX)csi$(PROGRAM_SUFFIX)
278CHICKEN_PROFILE_PROGRAM = $(PROGRAM_PREFIX)chicken-profile$(PROGRAM_SUFFIX)
279CHICKEN_SETUP_PROGRAM = $(PROGRAM_PREFIX)chicken-setup$(PROGRAM_SUFFIX)
280CHICKEN_BUG_PROGRAM = $(PROGRAM_PREFIX)chicken-bug$(PROGRAM_SUFFIX)
281
282ifdef STATICBUILD
283CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
284CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
285CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
286CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
287TARGETLIBS ?= libchicken$(A) libuchicken$(A)
288TARGETS ?= $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
289        $(CSI_STATIC_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
290        $(CSC_PROGRAM)$(EXE) \
291        chicken.info $(CHICKEN_BUG_PROGRAM)$(EXE)
292else
293CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
294CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
295CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
296CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
297TARGETLIBS ?= libchicken$(A) libuchicken$(A) \
298        $(LIBCHICKEN_SO_FILE) $(LIBUCHICKEN_SO_FILE)
299TARGETS ?= $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
300        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
301        $(CSC_PROGRAM)$(EXE) $(CHICKEN_SETUP_PROGRAM)$(EXE) chicken.info \
302        $(CHICKEN_BUG_PROGRAM)$(EXE)
303endif
304
305# main rule
306
307.PHONY: all
308
309all: buildsvnrevision $(TARGETS)
310
311buildsvnrevision:
312ifdef NO_UNIX_SHELL
313        echo 0 >buildsvnrevision
314else
315        sh $(SRCDIR)svnrevision.sh
316endif
317
318# generic part of chicken-config.h
319
320ifndef CUSTOM_CHICKEN_DEFAULTS
321chicken-defaults.h: buildsvnrevision
322        echo "/* generated */" >$@
323        echo "#define C_BUILD_TAG \"$(BUILD_TAG)\"" >>$@
324        echo "#define C_SVN_REVISION $(shell cat buildsvnrevision)" >>$@
325        echo "#ifndef C_INSTALL_CC" >>$@
326        echo "# define C_INSTALL_CC \"$(C_COMPILER)\"" >>$@
327        echo "#endif" >>$@
328        echo "#ifndef C_INSTALL_CXX" >>$@
329        echo "# define C_INSTALL_CXX \"$(CXX_COMPILER)\"" >>$@
330        echo "#endif" >>$@
331        echo "#ifndef C_INSTALL_CFLAGS" >>$@
332        echo "# define C_INSTALL_CFLAGS \"$(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
333        echo "#endif" >>$@
334        echo "#ifndef C_INSTALL_LDFLAGS" >>$@
335        echo "# define C_INSTALL_LDFLAGS \"$(LINKER_OPTIONS) $(LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
336        echo "#endif" >>$@
337        echo "#ifndef C_INSTALL_SHARE_HOME" >>$@
338        echo "# define C_INSTALL_SHARE_HOME \"$(IDATADIR)\"" >>$@
339        echo "#endif" >>$@
340        echo "#ifndef C_INSTALL_BIN_HOME" >>$@
341        echo "# define C_INSTALL_BIN_HOME \"$(IBINDIR)\"" >>$@
342        echo "#endif" >>$@
343        echo "#ifndef C_INSTALL_EGG_HOME" >>$@
344        echo "# define C_INSTALL_EGG_HOME \"$(IEGGDIR)\"" >>$@
345        echo "#endif" >>$@
346        echo "#ifndef C_INSTALL_LIB_HOME" >>$@
347        echo "# define C_INSTALL_LIB_HOME \"$(ILIBDIR)\"" >>$@
348        echo "#endif" >>$@
349        echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>$@
350        echo "# define C_INSTALL_STATIC_LIB_HOME \"$(ILIBDIR)\"" >>$@
351        echo "#endif" >>$@
352        echo "#ifndef C_INSTALL_INCLUDE_HOME" >>$@
353        echo "# define C_INSTALL_INCLUDE_HOME \"$(IINCDIR)\"" >>$@
354        echo "#endif" >>$@
355        echo "#ifndef C_INSTALL_MORE_LIBS" >>$@
356        echo "# define C_INSTALL_MORE_LIBS \"$(LIBRARIES)\"" >>$@
357        echo "#endif" >>$@
358        echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>$@
359        echo "# define C_INSTALL_MORE_STATIC_LIBS \"$(LIBRARIES)\"" >>$@
360        echo "#endif" >>$@
361        echo "#ifndef C_DEFAULT_TARGET_STACK_SIZE" >>$@
362        echo "# define C_DEFAULT_TARGET_STACK_SIZE $(NURSERY)" >>$@
363        echo "#endif" >>$@
364        echo "#ifndef C_STACK_GROWS_DOWNWARD" >>$@
365        echo "# define C_STACK_GROWS_DOWNWARD $(STACKDIRECTION)" >>$@
366        echo "#endif" >>$@
367        echo "#ifndef C_TARGET_MORE_LIBS" >>$@
368        echo "# define C_TARGET_MORE_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
369        echo "#endif" >>$@
370        echo "#ifndef C_TARGET_MORE_STATIC_LIBS" >>$@
371        echo "# define C_TARGET_MORE_STATIC_LIBS \"$(TARGET_LIBRARIES)\"" >>$@
372        echo "#endif" >>$@
373        echo "#ifndef C_TARGET_CC" >>$@
374        echo "# define C_TARGET_CC \"$(TARGET_C_COMPILER)\"" >>$@
375        echo "#endif" >>$@
376        echo "#ifndef C_TARGET_CXX" >>$@
377        echo "# define C_TARGET_CXX \"$(TARGET_CXX_COMPILER)\"" >>$@
378        echo "#endif" >>$@
379        echo "#ifndef C_TARGET_CFLAGS" >>$@
380        echo "# define C_TARGET_CFLAGS \"$(TARGET_C_COMPILER_OPTIONS) $(TARGET_C_COMPILER_OPTIMIZATION_OPTIONS)\"" >>$@
381        echo "#endif" >>$@
382        echo "#ifndef C_TARGET_LDFLAGS" >>$@
383        echo "# define C_TARGET_LDFLAGS \"$(TARGET_LINKER_OPTIONS) $(TARGET_LINKER_OPTIMIZATION_OPTIONS)\"" >>$@
384        echo "#endif" >>$@
385        echo "#ifndef C_CROSS_CHICKEN" >>$@
386        echo "# define C_CROSS_CHICKEN $(CROSS_CHICKEN)" >>$@
387        echo "#endif" >>$@
388ifdef WINDOWS
389        echo "#ifndef C_TARGET_LIB_HOME" >>$@
390        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
391        echo "#endif" >>$@
392        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
393        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)\\lib\"" >>$@
394        echo "#endif" >>$@
395        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
396        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)\\share\"" >>$@
397        echo "#endif" >>$@
398        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
399        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)\\include\"" >>$@
400        echo "#endif" >>$@
401        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
402        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)\\lib\"" >>$@
403        echo "#endif" >>$@
404else
405        echo "#ifndef C_TARGET_LIB_HOME" >>$@
406        echo "# define C_TARGET_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
407        echo "#endif" >>$@
408        echo "#ifndef C_TARGET_RUN_LIB_HOME" >>$@
409        echo "# define C_TARGET_RUN_LIB_HOME \"$(TARGET_RUN_PREFIX)/lib\"" >>$@
410        echo "#endif" >>$@
411        echo "#ifndef C_TARGET_SHARE_HOME" >>$@
412        echo "# define C_TARGET_SHARE_HOME \"$(TARGET_PREFIX)/share\"" >>$@
413        echo "#endif" >>$@
414        echo "#ifndef C_TARGET_INCLUDE_HOME" >>$@
415        echo "# define C_TARGET_INCLUDE_HOME \"$(TARGET_PREFIX)/include\"" >>$@
416        echo "#endif" >>$@
417        echo "#ifndef C_TARGET_STATIC_LIB_HOME" >>$@
418        echo "# define C_TARGET_STATIC_LIB_HOME \"$(TARGET_PREFIX)/lib\"" >>$@
419        echo "#endif" >>$@
420endif
421        echo "#ifndef C_CHICKEN_PROGRAM" >>$@
422        echo "# define C_CHICKEN_PROGRAM \"$(CHICKEN_PROGRAM)\"" >>$@
423        echo "#endif" >>$@
424        echo "#ifndef C_CSC_PROGRAM" >>$@
425        echo "# define C_CSC_PROGRAM \"$(CSC_PROGRAM)\"" >>$@
426        echo "#endif" >>$@
427        echo "#ifndef C_CSI_PROGRAM" >>$@
428        echo "# define C_CSI_PROGRAM \"$(CSI_PROGRAM)\"" >>$@
429        echo "#endif" >>$@
430        echo "#ifndef C_CHICKEN_PROFILE_PROGRAM" >>$@
431        echo "# define C_CHICKEN_PROFILE_PROGRAM \"$(CHICKEN_PROFILE_PROGRAM)\"" >>$@
432        echo "#endif" >>$@
433        echo "#ifndef C_CHICKEN_SETUP_PROGRAM" >>$@
434        echo "# define C_CHICKEN_SETUP_PROGRAM \"$(CHICKEN_SETUP_PROGRAM)\"" >>$@
435        echo "#endif" >>$@
436        echo "#ifndef C_CHICKEN_BUG_PROGRAM" >>$@
437        echo "# define C_CHICKEN_BUG_PROGRAM \"$(CHICKEN_BUG_PROGRAM)\"" >>$@
438        echo "#endif" >>$@
439        echo "#ifndef C_BINARY_VERSION" >>$@
440        echo "# define C_BINARY_VERSION $(BINARYVERSION)" >>$@
441        echo "#endif" >>$@
442endif
Note: See TracBrowser for help on using the repository browser.