source: project/chicken/trunk/defaults.make @ 11900

Last change on this file since 11900 was 11900, checked in by Ivan Raikov, 13 years ago

Some fixes to the mingw build.

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