blob: 18d56b4080a086778a47f2924644f2f1f7bea1d3 [file] [log] [blame]
adamdunkelsa4ed8472003-04-10 07:25:26 +00001# Copyright (c) 2002, Adam Dunkels.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# 2. Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in the
11# documentation and/or other materials provided with the distribution.
12# 3. All advertising materials mentioning features or use of this software
13# must display the following acknowledgement:
14# This product includes software developed by Adam Dunkels.
15# 4. The name of the author may not be used to endorse or promote
16# products derived from this software without specific prior
17# written permission.
18#
19# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
20# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
23# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30#
31# This file is part of the Contiki desktop environment
32#
oliverschmidte04e3862005-04-18 21:49:36 +000033# $Id: Makefile,v 1.6 2005/04/18 21:49:36 oliverschmidt Exp $
adamdunkelsa4ed8472003-04-10 07:25:26 +000034#
35
adamdunkelsa4ed8472003-04-10 07:25:26 +000036CONTIKI=../contiki
oliverschmidt3cf3d302004-06-08 20:28:33 +000037CONTIKICC65=../contiki-cc65
adamdunkelsa4ed8472003-04-10 07:25:26 +000038
oliverschmidt3cf3d302004-06-08 20:28:33 +000039usage:
40 @echo "Make sure the Contiki sources is in the directory $(CONTIKI)"
41 @echo 'To compile Contiki, use "'$(MAKE)' target" where target'
42 @echo 'is one of the following:'
43 @echo all
44 @echo apple2
45 @echo apple2enh
oliverschmidt76872e82004-12-26 14:13:34 +000046 @echo programs
47 @echo programsenh
oliverschmidt3cf3d302004-06-08 20:28:33 +000048 @echo '(Also check the Makefile for more targets to try...)'
adamdunkelsa4ed8472003-04-10 07:25:26 +000049
oliverschmidta330e332005-01-22 03:00:27 +000050all: clean apple2enh programsenh
adamdunkelsa4ed8472003-04-10 07:25:26 +000051
oliverschmidt3cf3d302004-06-08 20:28:33 +000052apple2:
53 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.apple2 SYS=apple2
adamdunkelsa4ed8472003-04-10 07:25:26 +000054
oliverschmidt3cf3d302004-06-08 20:28:33 +000055apple2enh:
56 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.apple2 SYS=apple2enh
adamdunkelsa4ed8472003-04-10 07:25:26 +000057
oliverschmidt76872e82004-12-26 14:13:34 +000058programs:
59 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.programs SYS=apple2
60
61programsenh:
62 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.programs SYS=apple2enh
63
oliverschmidt3cf3d302004-06-08 20:28:33 +000064CCDEPFLAGS=
adamdunkelsa4ed8472003-04-10 07:25:26 +000065
oliverschmidte04e3862005-04-18 21:49:36 +000066include $(CONTIKICC65)/Makefile.cc65
adamdunkelsa4ed8472003-04-10 07:25:26 +000067