adamdunkels | 7e4982c | 2003-03-19 16:26:18 +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 | # |
adamdunkels | 8228583 | 2003-04-08 18:21:57 +0000 | [diff] [blame^] | 33 | # $Id: Makefile,v 1.2 2003/04/08 18:21:57 adamdunkels Exp $ |
adamdunkels | 7e4982c | 2003-03-19 16:26:18 +0000 | [diff] [blame] | 34 | # |
| 35 | |
| 36 | CONTIKI=../contiki |
| 37 | |
| 38 | usage: |
| 39 | @echo "Make sure the Contiki sources is in the directory $(CONTIKI)" |
| 40 | @echo 'To compile Contiki, use "'$(MAKE)' target" where target' |
| 41 | @echo 'is one of the following:' |
adamdunkels | 8228583 | 2003-04-08 18:21:57 +0000 | [diff] [blame^] | 42 | @echo tfe |
| 43 | @echo rs232-eyecandy programs |
| 44 | @echo rs232-blueround |
| 45 | @echo rs232-conio programs |
| 46 | @echo d64 |
| 47 | @echo programs |
adamdunkels | 7e4982c | 2003-03-19 16:26:18 +0000 | [diff] [blame] | 48 | @echo '(Also check the Makefile for more targets to try...)' |
| 49 | |
adamdunkels | 8228583 | 2003-04-08 18:21:57 +0000 | [diff] [blame^] | 50 | programs: |
| 51 | $(MAKE) CONTIKI=$(CONTIKI) -f Makefile.programs |
| 52 | tfe: |
| 53 | $(MAKE) CONTIKI=$(CONTIKI) -f Makefile.c64-tfe |
| 54 | rs232-eyecandy: |
| 55 | $(MAKE) CONTIKI=$(CONTIKI) -f Makefile.c64-rs232-eyecandy |
| 56 | rs232-conio: |
| 57 | $(MAKE) CONTIKI=$(CONTIKI) -f Makefile.c64-rs232-conio |
| 58 | rs232-blueround: |
| 59 | $(MAKE) CONTIKI=$(CONTIKI) -f Makefile.c64-rs232-blueround |
adamdunkels | 7e4982c | 2003-03-19 16:26:18 +0000 | [diff] [blame] | 60 | |
| 61 | depend: |
| 62 | gcc -MM -D_CBM__ -D__C64__ -v \ |
adamdunkels | 8228583 | 2003-04-08 18:21:57 +0000 | [diff] [blame^] | 63 | -Iapps -Ictk -Iuip -Iconf \ |
adamdunkels | 7e4982c | 2003-03-19 16:26:18 +0000 | [diff] [blame] | 64 | -I$(CONTIKI)/lib -I$(CONTIKI)/ek \ |
| 65 | -I$(CONTIKI)/ctk -I$(CONTIKI)/apps -I$(CONTIKI)/uip \ |
| 66 | *.c */*.c $(CONTIKI)/*/*.c > Makefile.depend |
| 67 | size: |
| 68 | od65 --dump-segsize *.o |
| 69 | codesize: |
| 70 | od65 --dump-segsize *.o | egrep '\.o|CODE' |
| 71 | clean: |
adamdunkels | 8228583 | 2003-04-08 18:21:57 +0000 | [diff] [blame^] | 72 | rm -f *.o *~ *core contiki *.s *.prg contiki-labels |
| 73 | d64: |
| 74 | c1541 -format contiki,64 d64 contiki.d64 |
| 75 | c1541 -attach contiki.d64 -write contiki |
| 76 | c1541 -attach contiki.d64 -write about.prg -write email.prg -write memstat.prg -write netconf.prg -write processes.prg -write simpletelnet.prg -write test.prg -write www.prg |
| 77 | c1541 -attach contiki.d64 -list |