blob: 354f31d12c61a21b3db3a50e293af1e5c3af476a [file] [log] [blame]
oliverschmidt3cf3d302004-06-08 20:28:33 +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#
oliverschmidtd42a5f82004-07-12 21:28:59 +000033# $Id: Makefile.apple2,v 1.4 2004/07/12 21:28:59 oliverschmidt Exp $
oliverschmidt3cf3d302004-06-08 20:28:33 +000034#
35
36all: contiki
37
38SYS=apple2enh
39
40include $(CONTIKICC65)/Makefile.common
41
42AFLAGS:=-t $(SYS)
43
44CFLAGS:=$(CFLAGSCOMMON) \
45 -DWITH_ASCII -DWITH_UIP -DWITH_ETHERNET
46
oliverschmidt19032c62004-06-14 22:30:32 +000047ifeq ($(SYS),apple2enh)
48CTK=ctk.o ctk-mousetext.o
49else
oliverschmidt3cf3d302004-06-08 20:28:33 +000050CTK=ctk.o ctk-conio.o
oliverschmidt19032c62004-06-14 22:30:32 +000051endif
oliverschmidt3cf3d302004-06-08 20:28:33 +000052
oliverschmidt9e652ff2004-07-11 12:24:52 +000053contiki:crt0.o main.o ek.o ek-service.o \
54 timer.o program-handler.o arg.o \
55 $(CTK) $(UIP) \
oliverschmidt19032c62004-06-14 22:30:32 +000056 config.o config-dsc.o \
oliverschmidt3cf3d302004-06-08 20:28:33 +000057 $(WWW) www-dsc.o \
58 $(TELNET) telnet-dsc.o \
oliverschmidtd42a5f82004-07-12 21:28:59 +000059 calc.o calc-dsc.o \
oliverschmidt3cf3d302004-06-08 20:28:33 +000060 processes.o processes-dsc.o \
61 about.o about-dsc.o
62 $(LD) -C apple2.cfg -m contiki.map $^ $(SYS).lib