source: project/chicken/trunk/Makefile @ 7215

Last change on this file since 7215 was 7215, checked in by felix winkelmann, 12 years ago

fixed bootstrapping make rules

File size: 3.0 KB
Line 
1# Makefile - toplevel makefile
2#
3# Copyright (c) 2007, Felix L. Winkelmann
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
7# conditions are met:
8#
9#   Redistributions of source code must retain the above copyright notice, this list of conditions and the following
10#     disclaimer.
11#   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
12#     disclaimer in the documentation and/or other materials provided with the distribution.
13#   Neither the name of the author nor the names of its contributors may be used to endorse or promote
14#     products derived from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
17# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
18# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
19# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24# POSSIBILITY OF SUCH DAMAGE.
25#
26# Send bugs, suggestions and ideas to:
27#
28# felix@call-with-current-continuation.org
29#
30# Felix L. Winkelmann
31# Unter den Gleichen 1
32# 37130 Gleichen
33# Germany
34
35
36.PHONY: all clean distclean spotless install uninstall confclean check dist \
37        libs install-libs fullcheck bootstrap
38
39ifndef PLATFORM
40all clean spotless distclean install uninstall:
41        @echo "no PLATFORM given."
42        @echo ""
43        @echo "Please select your target platform by running one of the following commands:"
44        @echo ""
45        @echo $(MAKE) PLATFORM=linux"
46        @echo $(MAKE) PLATFORM=bsd"
47        @echo $(MAKE) PLATFORM=macosx"
48        @echo $(MAKE) PLATFORM=mingw-msys"
49        @echo $(MAKE) PLATFORM=mingw"
50        @echo $(MAKE) PLATFORM=cygwin"
51        @echo $(MAKE) PLATFORM=solaris"
52        @echo $(MAKE) PLATFORM=cross-linux-mingw"
53        @echo ""
54        @echo "For more information, consult the README file."
55        @exit 1
56else
57all:
58        $(MAKE) -f Makefile.$(PLATFORM) all
59clean:
60        $(MAKE) -f Makefile.$(PLATFORM) clean
61distclean:
62        $(MAKE) -f Makefile.$(PLATFORM) distclean
63spotless:
64        $(MAKE) -f Makefile.$(PLATFORM) spotless
65install:
66        $(MAKE) -f Makefile.$(PLATFORM) install
67uninstall:
68        $(MAKE) -f Makefile.$(PLATFORM) uninstall
69confclean:
70        $(MAKE) -f Makefile.$(PLATFORM) confclean
71check:
72        $(MAKE) -f Makefile.$(PLATFORM) check
73fullcheck:
74        $(MAKE) -f Makefile.$(PLATFORM) fullcheck
75dist:
76        $(MAKE) -f Makefile.$(PLATFORM) distfiles
77        csi -s misc/makedist.scm
78libs:
79        $(MAKE) -f Makefile.$(PLATFORM) libs
80install-libs:
81        $(MAKE) -f Makefile.$(PLATFORM) install-libs
82bootstrap:
83        $(MAKE) -f Makefile.$(PLATFORM) bootstrap
84endif
Note: See TracBrowser for help on using the repository browser.