blob: d2d6ebcca32888ba8d698d5c8d9e6dae4589ed83 [file] [log] [blame]
adamdunkels7e4982c2003-03-19 16:26:18 +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#
adamdunkelsa4040a12003-04-24 17:02:10 +000033# $Id: Makefile,v 1.6 2003/04/24 17:02:11 adamdunkels Exp $
adamdunkels7e4982c2003-03-19 16:26:18 +000034#
35
36CONTIKI=../contiki
adamdunkelsa4040a12003-04-24 17:02:10 +000037CONTIKICC65=../contiki-cc65
adamdunkels7e4982c2003-03-19 16:26:18 +000038
39usage:
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:'
adamdunkels82285832003-04-08 18:21:57 +000043 @echo tfe
adamdunkels77e47062003-04-17 15:09:31 +000044 @echo rs232 programs
adamdunkels82285832003-04-08 18:21:57 +000045 @echo rs232-conio programs
46 @echo d64
47 @echo programs
adamdunkels7e4982c2003-03-19 16:26:18 +000048 @echo '(Also check the Makefile for more targets to try...)'
49
adamdunkels82285832003-04-08 18:21:57 +000050programs:
adamdunkelsa4040a12003-04-24 17:02:10 +000051 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.programs
adamdunkels82285832003-04-08 18:21:57 +000052tfe:
adamdunkelsa4040a12003-04-24 17:02:10 +000053 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.c64-tfe
adamdunkels77e47062003-04-17 15:09:31 +000054rs232:
adamdunkelsa4040a12003-04-24 17:02:10 +000055 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.c64-rs232
adamdunkels82285832003-04-08 18:21:57 +000056rs232-conio:
adamdunkelsa4040a12003-04-24 17:02:10 +000057 $(MAKE) CONTIKI=$(CONTIKI) CONTIKICC65=$(CONTIKICC65) -f Makefile.c64-rs232-conio
adamdunkels7e4982c2003-03-19 16:26:18 +000058
adamdunkelsa4040a12003-04-24 17:02:10 +000059
60CCDEPFLAGS=-D__CBM__ -D__C64__ -DCTK_HIRES
61
62include $(CONTIKICC65)/Makefile.common
63