source: project/chicken/branches/hygienic/defaults.make @ 10788

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