source: project/chicken/trunk/Makefile @ 13041

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

updateed copyright

File size: 3.2 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 $(MAKE) PLATFORM=msvc"
50        @echo ""
51        @echo "For more information, consult the README file."
52        @exit 1
53else
54all:
55        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) all
56clean:
57        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) clean
58distclean:
59        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) distclean
60spotless:
61        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) spotless
62install:
63        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) install
64uninstall:
65        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) uninstall
66confclean:
67        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) confclean
68check:
69        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) check
70fullcheck:
71        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) fullcheck
72dist:
73        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) distfiles
74        csi -s scripts/makedist.scm
75libs:
76        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) libs
77install-libs:
78        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) install-libs
79bootstrap:
80        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) bootstrap
81bench:
82        $(MAKE) -f $(SRCDIR)/Makefile.$(PLATFORM) bench
83endif
Note: See TracBrowser for help on using the repository browser.