source: project/chicken/branches/prerelease/defaults.make @ 11632

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

Merged prerelease and trunk.

File size: 13.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 = .
43VPATH  = $(SRCDIR)
44
45DESTDIR =
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)
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
157PCRE_DIR ?= $(VPATH)/pcre
158C_COMPILER_PCRE_OPTIONS = -DPCRE_STATIC
159PCRE_INCLUDES = $(INCLUDES) -I$(PCRE_DIR)
160endif
161ifndef NOPTABLES
162C_COMPILER_PTABLES_OPTIONS ?= -DC_ENABLE_PTABLES
163endif
164INCLUDES ?= -I. -I$(SRCDIR)
165C_COMPILER_COMPILE_OPTION ?= -c
166C_COMPILER_OUTPUT_OPTION ?= -o
167C_COMPILER_OUTPUT ?= $(C_COMPILER_OUTPUT_OPTION) $@
168
169ifdef DEBUGBUILD
170C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
171endif
172C_COMPILER_BUILD_RUNTIME_OPTIONS ?= -DC_BUILDING_LIBCHICKEN
173C_COMPILER_BUILD_UNSAFE_RUNTIME_OPTIONS ?= $(C_COMPILER_BUILD_RUNTIME_OPTIONS) -DNDEBUG -DC_UNSAFE_RUNTIME
174C_COMPILER_SHARED_OPTIONS ?= -fPIC -DPIC
175LINKER_EXECUTABLE_OPTIONS ?= -L.
176LINKER_STATIC_OPTIONS ?= $(LINKER_EXECUTABLE_OPTIONS)
177LINKER_OUTPUT_OPTION ?= -o
178LINKER_OUTPUT ?= $(LINKER_OUTPUT_OPTION) $@
179LINKER_LIBRARY_OPTION ?= -l
180ifdef STATICBUILD
181LINKER_LIBRARY_PREFIX ?= lib
182LINKER_LIBRARY_SUFFIX ?= .a
183else
184LINKER_LIBRARY_PREFIX ?= -l
185LINKER_LIBRARY_SUFFIX ?= 
186endif
187LINKER_LINK_SHARED_LIBRARY_OPTIONS ?= -shared
188LIBRARIAN_OPTIONS ?= cru
189LIBRARIAN_OUTPUT_OPTION ?=
190LIBRARIAN_OUTPUT ?= $(LIBRARIAN_OUTPUT_OPTION) $@
191LIBRARIES ?= -lm
192ifeq ($(PLATFORM),mingw)
193REMOVE_COMMAND_OPTIONS ?= /f /q
194REMOVE_COMMAND_RECURSIVE_OPTIONS ?= /f /s /q
195MAKE_WRITABLE_COMMAND ?= rem
196else
197REMOVE_COMMAND_OPTIONS ?= -f
198REMOVE_COMMAND_RECURSIVE_OPTIONS ?= -fr
199MAKE_WRITABLE_COMMAND ?= chmod a+rw
200endif
201MAKEINFO_PROGRAM_OPTIONS ?= --no-split
202ifneq ($(PLATFORM),mingw)
203INSTALL_PROGRAM_SHARED_LIBRARY_OPTIONS ?= -m755
204INSTALL_PROGRAM_STATIC_LIBRARY_OPTIONS ?= -m644
205INSTALL_PROGRAM_EXECUTABLE_OPTIONS ?= -m755
206INSTALL_PROGRAM_FILE_OPTIONS ?= -m644
207MAKEDIR_COMMAND_OPTIONS ?= -p
208endif
209ASSEMBLER_OPTIONS ?= $(C_COMPILER_OPTIONS)
210ASSEMBLER_OUTPUT_OPTION ?= -o
211ASSEMBLER_OUTPUT ?= $(ASSEMBLER_OUTPUT_OPTION) $@
212ASSEMBLER_COMPILE_OPTION ?= -c
213ifdef STATICBUILD
214PRIMARY_LIBCHICKEN ?= libchicken$(A)
215else
216ifeq ($(PLATFORM),cygwin)
217PRIMARY_LIBCHICKEN = cygchicken-0.dll
218LIBCHICKEN_SO_FILE = cygchicken-0.dll
219LIBUCHICKEN_SO_FILE = cyguchicken-0.dll
220LIBCHICKENGUI_SO_FILE ?= 
221else
222PRIMARY_LIBCHICKEN ?= libchicken$(SO)$(SONAME_VERSION)
223LIBCHICKEN_SO_FILE ?= libchicken$(SO)$(SONAME_VERSION)
224LIBUCHICKEN_SO_FILE ?= libuchicken$(SO)$(SONAME_VERSION)
225LIBCHICKENGUI_SO_FILE ?= 
226endif
227endif
228UNINSTALLINFO_PROGRAM_OPTIONS ?= --delete
229LIBCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
230LIBUCHICKEN_SO_LIBRARIES ?= $(LIBRARIES)
231LIBCHICKENGUI_SO_LIBRARIES ?= $(LIBRARIES)
232
233# other settings
234
235HOSTNAME ?= $(shell hostname)
236ifeq ($(PLATFORM),mingw)
237BUILD_TIME ?= $(shell date /t)
238UNAME_SYS ?= MinGW
239else
240BUILD_TIME ?= $(shell date +%Y-%m-%d)
241UNAME_SYS ?= $(shell uname)
242endif
243BUILD_TAG ?= compiled $(BUILD_TIME) on $(HOSTNAME) ($(UNAME_SYS))
244
245ifdef LOCKTOSPACE
246C_COMPILER_BUILD_RUNTIME_OPTIONS += -DC_LOCK_TOSPACE
247endif
248
249
250# file extensions
251
252O ?= .o
253A ?= .a
254# EXE ?=
255SO ?= .so
256ASM ?= .s
257
258# special files
259
260POSIXFILE ?= posixunix
261CHICKEN_CONFIG_H = chicken-config.h
262
263ifneq ($(ARCH),)
264HACKED_APPLY ?= 1
265APPLY_HACK_SRC ?= apply-hack.$(ARCH)$(ASM)
266APPLY_HACK_OBJECT ?= apply-hack.$(ARCH)$(O)
267endif
268
269# bootstrapping compiler
270
271CHICKEN = chicken$(EXE)
272
273# Scheme compiler flags
274
275CHICKEN_OPTIONS = \
276        -quiet -no-trace -optimize-level 2 \
277        -include-path . -include-path $(SRCDIR)
278CHICKEN_LIBRARY_OPTIONS = $(CHICKEN_OPTIONS) -explicit-use
279CHICKEN_PROGRAM_OPTIONS = $(CHICKEN_OPTIONS) -no-lambda-info
280CHICKEN_COMPILER_OPTIONS = $(CHICKEN_PROGRAM_OPTIONS) -extend private-namespace.scm
281CHICKEN_UNSAFE_OPTIONS = -unsafe -no-lambda-info
282
283ifneq ($(USE_HOST_PCRE),)
284CHICKEN_PCRE_LIBRARY_OPTIONS = 
285else
286CHICKEN_PCRE_LIBRARY_OPTIONS = -include-path $(SRCDIR)/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)
297
298ifdef STATICBUILD
299CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
300CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
301CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)-shared$(EXE)
302CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)-shared$(EXE)
303TARGETLIBS ?= libchicken$(A) libuchicken$(A)
304TARGETS ?= $(TARGETLIBS) $(CHICKEN_STATIC_EXECUTABLE) \
305        $(CSI_STATIC_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
306        $(CSC_PROGRAM)$(EXE) \
307        chicken.info $(CHICKEN_BUG_PROGRAM)$(EXE)
308else
309CHICKEN_STATIC_EXECUTABLE = $(CHICKEN_PROGRAM)-static$(EXE)
310CSI_STATIC_EXECUTABLE = $(CSI_PROGRAM)-static$(EXE)
311CHICKEN_SHARED_EXECUTABLE = $(CHICKEN_PROGRAM)$(EXE)
312CSI_SHARED_EXECUTABLE = $(CSI_PROGRAM)$(EXE)
313TARGETLIBS ?= libchicken$(A) libuchicken$(A) \
314        $(LIBCHICKEN_SO_FILE) $(LIBUCHICKEN_SO_FILE)
315TARGETS ?= $(TARGETLIBS) $(CHICKEN_SHARED_EXECUTABLE) \
316        $(CSI_SHARED_EXECUTABLE) $(CHICKEN_PROFILE_PROGRAM)$(EXE) \
317        $(CSC_PROGRAM)$(EXE) $(CHICKEN_SETUP_PROGRAM)$(EXE) chicken.info \
318        $(CHICKEN_BUG_PROGRAM)$(EXE)
319endif
320
321# main rule
322
323.PHONY: all
324
325ifdef NO_UNIX_SHELL
326all: $(TARGETS)
327else
328all: buildsvnrevision $(TARGETS)
329endif
330
331buildsvnrevision:
332        sh $(SRCDIR)/svnrevision.sh
333ifeq ($(USE_HOST_PCRE),)
334        $(MAKEDIR_COMMAND) $(MAKEDIR_COMMAND_OPTIONS) pcre
335endif
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.