blob: af7c02e20835396fca1bef14c798cf255d754ff8 [file] [log] [blame]
adamdunkels4b0459d2003-04-05 12:35:32 +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#
oliverschmidt4ee28222005-05-07 13:30:43 +000033# $Id: Makefile,v 1.12 2005/05/07 13:30:43 oliverschmidt Exp $
adamdunkels4b0459d2003-04-05 12:35:32 +000034#
35
oliverschmidt4ee28222005-05-07 13:30:43 +000036all: contiki loader-arch-module.o loader-arch-module-dsc.o contiki-labels.o \
adamdunkels386f7102003-04-24 17:25:12 +000037 about.prg about.dsc processes.prg processes.dsc \
38 netconf.prg netconf.dsc memstat.prg memstat.dsc \
39 directory.prg directory.dsc
adamdunkels37bb23d2003-04-08 20:10:07 +000040
adamdunkels4b0459d2003-04-05 12:35:32 +000041CONTIKI=../contiki
adamdunkels386f7102003-04-24 17:25:12 +000042CONTIKICC65=../contiki-cc65
adamdunkels4b0459d2003-04-05 12:35:32 +000043SYS=vic20
44
oliverschmidtfd9b4672005-04-18 22:08:02 +000045include $(CONTIKI)/Makefile.common
oliverschmidt6784cc62005-04-18 21:50:53 +000046include $(CONTIKICC65)/Makefile.cc65
adamdunkels4b0459d2003-04-05 12:35:32 +000047
oliverschmidtb8321ff2005-04-24 23:24:57 +000048CFLAGS=$(CFLAGSCC65) -DWITH_LOADER_ARCH
adamdunkels4b0459d2003-04-05 12:35:32 +000049
adamdunkels4b0459d2003-04-05 12:35:32 +000050contiki: contiki-main.o strncasecmp.o petsciiconv.o \
adamdunkels7c1928a2004-07-04 20:11:14 +000051 ctk-conio.o ctk.o ek.o arg.o timer.o \
adamdunkels386f7102003-04-24 17:25:12 +000052 program-handler.o loader-arch.o \
53 about-dsc.o netconf-dsc.o processes-dsc.o directory-dsc.o
54 $(CL) $(CLFLAGS) -C vic20.cfg -o contiki -t $(SYS) $^