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