source: project/chicken/branches/prerelease/Makefile @ 15101

Last change on this file since 15101 was 15101, checked in by felix winkelmann, 10 years ago

merged trunk changes from 14491:15100 into prerelease branch

File size: 3.1 KB
Line 
1# Makefile - toplevel makefile
2#
3# Copyright (c) 2007, Felix L. Winkelmann
4# Copyright (c) 2008-2009, 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
27STANDARD_TARGETS \
28        = all clean distclean spotless install uninstall confclean check \
29          fullcheck dist libs install-libs bootstrap
30
31SRCDIR = .
32
33.PHONY: $(STANDARD_TARGETS)
34
35ifndef PLATFORM
36$(STANDARD_TARGETS):
37        @echo "no PLATFORM given."
38        @echo ""
39        @echo "Please select your target platform by running one of the following commands:"
40        @echo ""
41        @echo $(MAKE) PLATFORM=linux"
42        @echo $(MAKE) PLATFORM=bsd"
43        @echo $(MAKE) PLATFORM=macosx"
44        @echo $(MAKE) PLATFORM=mingw-msys"
45        @echo $(MAKE) PLATFORM=mingw"
46        @echo $(MAKE) PLATFORM=cygwin"
47        @echo $(MAKE) PLATFORM=solaris"
48        @echo $(MAKE) PLATFORM=cross-linux-mingw"
49        @echo ""
50        @echo "For more information, consult the README file."
51        @exit 1
52else
53all:
54        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) all
55clean:
56        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) clean
57distclean:
58        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) distclean
59spotless:
60        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) spotless
61install:
62        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) install
63uninstall:
64        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) uninstall
65confclean:
66        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) confclean
67check:
68        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) check
69fullcheck:
70        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) fullcheck
71dist:
72        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) distfiles
73        csi -s scripts/makedist.scm
74libs:
75        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) libs
76install-libs:
77        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) install-libs
78bootstrap:
79        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) bootstrap
80bench:
81        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) bench
82endif
Note: See TracBrowser for help on using the repository browser.