oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 1 | # 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 | # |
oliverschmidt | d7616e8 | 2006-05-30 20:50:26 +0000 | [diff] [blame] | 33 | # $Id: Makefile.apple2,v 1.20 2006/05/30 20:51:01 oliverschmidt Exp $ |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 34 | # |
| 35 | |
| 36 | all: contiki |
| 37 | |
oliverschmidt | 8bbf56d | 2005-04-18 22:05:31 +0000 | [diff] [blame] | 38 | include $(CONTIKI)/Makefile.common |
oliverschmidt | e04e386 | 2005-04-18 21:49:36 +0000 | [diff] [blame] | 39 | include $(CONTIKICC65)/Makefile.cc65 |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 40 | |
oliverschmidt | 76872e8 | 2004-12-26 14:13:34 +0000 | [diff] [blame] | 41 | AFLAGS:=-t $(SYS) -I lib -I $(CC65_INC)/../asminc |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 42 | |
oliverschmidt | a34b131 | 2005-04-24 23:23:29 +0000 | [diff] [blame] | 43 | CFLAGS:=$(CFLAGSCC65) --code-name CONTIKI \ |
oliverschmidt | 76872e8 | 2004-12-26 14:13:34 +0000 | [diff] [blame] | 44 | -DWITH_ASCII -DWITH_UIP -DWITH_LOADER_ARCH -DWITH_ETHERNET |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 45 | |
oliverschmidt | 027febe | 2006-05-17 15:55:29 +0000 | [diff] [blame] | 46 | ifeq ($(SYS),apple2) |
| 47 | |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 48 | CTK=ctk.o ctk-conio.o |
oliverschmidt | 027febe | 2006-05-17 15:55:29 +0000 | [diff] [blame] | 49 | |
| 50 | else # apple2 |
| 51 | |
| 52 | CTK=ctk.o ctk-mousetext.o ctk-mouse.o |
| 53 | |
| 54 | uip.s uip_arch.s uiplib.s tcpip.s: %.s: %.c |
| 55 | $(CC) $(CFLAGS) $(OPT) -DUIP_CODE -o $(notdir $@) $< |
| 56 | |
| 57 | endif # apple2 |
oliverschmidt | 3cf3d30 | 2004-06-08 20:28:33 +0000 | [diff] [blame] | 58 | |
oliverschmidt | 76872e8 | 2004-12-26 14:13:34 +0000 | [diff] [blame] | 59 | contiki:crt0.o main.o ek.o ek-service.o timer.o program-handler.o arg.o \ |
oliverschmidt | 027febe | 2006-05-17 15:55:29 +0000 | [diff] [blame] | 60 | loader-arch.o clock-arch.o bank.o kfs.o import.o $(CTK) $(UIP) \ |
oliverschmidt | 63e299e | 2005-05-06 22:38:17 +0000 | [diff] [blame] | 61 | www-dsc.o \ |
oliverschmidt | 7ca3355 | 2005-05-05 00:14:16 +0000 | [diff] [blame] | 62 | email-dsc.o \ |
oliverschmidt | 18f390a | 2005-04-19 23:00:00 +0000 | [diff] [blame] | 63 | ftp-dsc.o \ |
oliverschmidt | 63e299e | 2005-05-06 22:38:17 +0000 | [diff] [blame] | 64 | directory-dsc.o |
oliverschmidt | f3fb0c9 | 2006-04-09 16:32:44 +0000 | [diff] [blame] | 65 | $(LD) -C $(SYS).cfg -Ln contiki-labels -m contiki.map $^ $(SYS).lib |