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

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

Merged trunk into prerelease

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