2010-02-03 23:52:31 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010, Adam Dunkels.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
# 3. The name of the author may not be used to endorse or promote
|
|
|
|
# products derived from this software without specific prior
|
|
|
|
# written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
|
|
|
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
|
|
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
# This file is part of the Contiki operating system.
|
|
|
|
#
|
|
|
|
# Author: Oliver Schmidt <ol.sc@web.de>
|
|
|
|
#
|
2010-10-23 20:39:47 +00:00
|
|
|
# $Id: Makefile,v 1.11 2010/10/23 20:39:47 oliverschmidt Exp $
|
2010-02-03 23:52:31 +00:00
|
|
|
#
|
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
ifndef CONTIKI
|
|
|
|
${error CONTIKI not defined! You must specify where CONTIKI resides}
|
|
|
|
endif
|
|
|
|
|
2010-02-03 23:52:31 +00:00
|
|
|
ifndef CC65_HOME
|
|
|
|
${error CC65_HOME not defined! You must specify where cc65 resides}
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef AC
|
|
|
|
${error AC not defined! You must specify where the AppleCommander jar resides}
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef C1541
|
|
|
|
${error C1541 not defined! You must specify where VICE c1541 resides}
|
|
|
|
endif
|
|
|
|
|
2010-09-29 22:41:37 +00:00
|
|
|
ifndef DIR2ATR
|
|
|
|
${error DIR2ATR not defined! You must specify where dir2atr resides}
|
|
|
|
endif
|
|
|
|
|
2010-10-23 20:39:47 +00:00
|
|
|
disks: apple2enh-1-disk apple2enh-2-disk apple2enh-3-disk apple2enh-4-disk \
|
2010-10-01 22:38:39 +00:00
|
|
|
c64-1-disk c64-2-disk \
|
|
|
|
c128-1-disk \
|
2010-10-23 20:39:47 +00:00
|
|
|
atari-1-disk atari-2-disk atari-3-disk atari-4-disk
|
2010-02-03 23:52:31 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
define makes
|
|
|
|
$1-makes:
|
|
|
|
$(MAKE) -C ../../cpu/6502/dhcp TARGET=$1
|
|
|
|
$(MAKE) -C ../../examples/webserver TARGET=$1 HTTPD-CFS=1
|
|
|
|
$(MAKE) -C ../../examples/webbrowser TARGET=$1
|
|
|
|
$(MAKE) -C ../../examples/wget TARGET=$1
|
|
|
|
$(MAKE) -C ../../examples/irc TARGET=$1
|
|
|
|
$(MAKE) -C ../../examples/email TARGET=$1
|
2010-10-23 20:39:47 +00:00
|
|
|
$(MAKE) -C ../../examples/ftp TARGET=$1
|
2012-02-10 16:19:40 +00:00
|
|
|
$(MAKE) -C ../../../contikiprojects/vandenbrande.com/twitter/platform/$1
|
2010-10-04 22:13:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call makes,apple2enh))
|
|
|
|
|
|
|
|
apple2enh-1-disk: apple2enh-makes
|
2010-02-08 22:29:26 +00:00
|
|
|
cp ../apple2enh/prodos.dsk contiki-1.dsk
|
|
|
|
java -jar $(AC) -p contiki-1.dsk contiki.cfg bin 0 < dummy.cfg
|
|
|
|
java -jar $(AC) -p contiki-1.dsk menu.system sys 0 < ../apple2enh/menu.system
|
|
|
|
java -jar $(AC) -p contiki-1.dsk dhcp.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-1.dsk dhcp bin 0 < ../../cpu/6502/dhcp/dhcp-client.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-1.dsk webserve.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-1.dsk webserve bin < ../../examples/webserver/webserver-example.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-1.dsk webbrows.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-1.dsk webbrows bin < ../../examples/webbrowser/webbrowser.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-1.dsk cs8900a.eth rel 0 < ../../cpu/6502/dhcp/cs8900a.eth
|
|
|
|
java -jar $(AC) -p contiki-1.dsk lan91c96.eth rel 0 < ../../cpu/6502/dhcp/lan91c96.eth
|
|
|
|
java -jar $(AC) -p contiki-1.dsk a2e.stdmou.mou rel 0 < $(CC65_HOME)/mou/a2e.stdmou.mou
|
2010-09-28 20:40:52 +00:00
|
|
|
java -jar $(AC) -p contiki-1.dsk index.htm bin 0 < ../../examples/webserver/httpd-cfs/index.htm
|
2010-09-28 19:43:50 +00:00
|
|
|
java -jar $(AC) -p contiki-1.dsk backgrnd.gif bin 0 < ../../examples/webserver/httpd-cfs/backgrnd.gif
|
2010-02-08 22:29:26 +00:00
|
|
|
java -jar $(AC) -p contiki-1.dsk contiki.gif bin 0 < ../../examples/webserver/httpd-cfs/contiki.gif
|
2010-09-28 20:40:52 +00:00
|
|
|
java -jar $(AC) -p contiki-1.dsk notfound.htm bin 0 < ../../examples/webserver/httpd-cfs/notfound.htm
|
2010-02-03 23:52:31 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
apple2enh-2-disk: apple2enh-makes
|
2010-02-08 22:29:26 +00:00
|
|
|
cp ../apple2enh/prodos.dsk contiki-2.dsk
|
|
|
|
java -jar $(AC) -p contiki-2.dsk contiki.cfg bin 0 < dummy.cfg
|
|
|
|
java -jar $(AC) -p contiki-2.dsk menu.system sys 0 < ../apple2enh/menu.system
|
2010-08-05 22:50:19 +00:00
|
|
|
java -jar $(AC) -p contiki-2.dsk dhcp.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-2.dsk dhcp bin 0 < ../../cpu/6502/dhcp/dhcp-client.apple2enh
|
2010-02-11 10:13:18 +00:00
|
|
|
java -jar $(AC) -p contiki-2.dsk wget.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-2.dsk wget bin < ../../examples/wget/wget.apple2enh
|
2010-02-08 22:29:26 +00:00
|
|
|
java -jar $(AC) -p contiki-2.dsk irc.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-2.dsk irc bin < ../../examples/irc/irc-client.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-2.dsk cs8900a.eth rel 0 < ../../cpu/6502/dhcp/cs8900a.eth
|
|
|
|
java -jar $(AC) -p contiki-2.dsk lan91c96.eth rel 0 < ../../cpu/6502/dhcp/lan91c96.eth
|
|
|
|
java -jar $(AC) -p contiki-2.dsk a2e.stdmou.mou rel 0 < $(CC65_HOME)/mou/a2e.stdmou.mou
|
2010-02-03 23:52:31 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
apple2enh-3-disk: apple2enh-makes
|
2010-08-05 22:50:19 +00:00
|
|
|
cp ../apple2enh/prodos.dsk contiki-3.dsk
|
|
|
|
java -jar $(AC) -p contiki-3.dsk contiki.cfg bin 0 < dummy.cfg
|
|
|
|
java -jar $(AC) -p contiki-3.dsk menu.system sys 0 < ../apple2enh/menu.system
|
|
|
|
java -jar $(AC) -p contiki-3.dsk dhcp.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-3.dsk dhcp bin 0 < ../../cpu/6502/dhcp/dhcp-client.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-3.dsk email.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-3.dsk email bin < ../../examples/email/email-client.apple2enh
|
2010-10-23 20:39:47 +00:00
|
|
|
java -jar $(AC) -p contiki-3.dsk ftp.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-3.dsk ftp bin < ../../examples/ftp/ftp-client.apple2enh
|
2010-08-05 22:50:19 +00:00
|
|
|
java -jar $(AC) -p contiki-3.dsk cs8900a.eth rel 0 < ../../cpu/6502/dhcp/cs8900a.eth
|
|
|
|
java -jar $(AC) -p contiki-3.dsk lan91c96.eth rel 0 < ../../cpu/6502/dhcp/lan91c96.eth
|
|
|
|
java -jar $(AC) -p contiki-3.dsk a2e.stdmou.mou rel 0 < $(CC65_HOME)/mou/a2e.stdmou.mou
|
|
|
|
|
2010-10-23 20:39:47 +00:00
|
|
|
apple2enh-4-disk: apple2enh-makes
|
|
|
|
cp ../apple2enh/prodos.dsk contiki-4.dsk
|
|
|
|
java -jar $(AC) -p contiki-4.dsk contiki.cfg bin 0 < dummy.cfg
|
|
|
|
java -jar $(AC) -p contiki-4.dsk menu.system sys 0 < ../apple2enh/menu.system
|
|
|
|
java -jar $(AC) -p contiki-4.dsk dhcp.system sys 0 < ../apple2enh/loader.system
|
|
|
|
java -jar $(AC) -cc65 contiki-4.dsk dhcp bin 0 < ../../cpu/6502/dhcp/dhcp-client.apple2enh
|
|
|
|
java -jar $(AC) -p contiki-4.dsk breadbox.system sys 0 < ../apple2enh/loader.system
|
2012-02-10 16:19:40 +00:00
|
|
|
java -jar $(AC) -cc65 contiki-4.dsk breadbox bin < ../../../contikiprojects/vandenbrande.com/twitter/platform/apple2enh/breadbox64.apple2enh
|
2010-10-23 20:39:47 +00:00
|
|
|
java -jar $(AC) -p contiki-4.dsk cs8900a.eth rel 0 < ../../cpu/6502/dhcp/cs8900a.eth
|
|
|
|
java -jar $(AC) -p contiki-4.dsk lan91c96.eth rel 0 < ../../cpu/6502/dhcp/lan91c96.eth
|
|
|
|
java -jar $(AC) -p contiki-4.dsk a2e.stdmou.mou rel 0 < $(CC65_HOME)/mou/a2e.stdmou.mou
|
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
$(eval $(call makes,c64))
|
|
|
|
|
|
|
|
c64-1-disk: c64-makes
|
2010-02-11 10:13:18 +00:00
|
|
|
$(C1541) -format contiki,00 d64 contiki-1.d64
|
2010-09-28 20:40:52 +00:00
|
|
|
$(C1541) -attach contiki-1.d64 -write dummy.cfg contiki.cfg,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../cpu/6502/dhcp/dhcp-client.c64 dhcp,p
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webserver/webserver-example.c64 webserver,p
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webbrowser/webbrowser.c64 webbrowser,p
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/wget/wget.c64 wget,p
|
2010-10-23 20:39:47 +00:00
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/irc/irc-client.c64 irc,p
|
2010-09-28 20:40:52 +00:00
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../cpu/6502/dhcp/cs8900a.eth cs8900a.eth,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../cpu/6502/dhcp/lan91c96.eth lan91c96.eth,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write $(CC65_HOME)/mou/c64-1351.mou c64-1351.mou,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webserver/httpd-cfs/index.htm index.htm,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webserver/httpd-cfs/backgrnd.gif backgrnd.gif,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webserver/httpd-cfs/contiki.gif contiki.gif,u
|
|
|
|
$(C1541) -attach contiki-1.d64 -write ../../examples/webserver/httpd-cfs/notfound.htm notfound.htm,u
|
2010-02-11 10:13:18 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
c64-2-disk: c64-makes
|
2010-02-11 10:13:18 +00:00
|
|
|
$(C1541) -format contiki,00 d64 contiki-2.d64
|
2012-02-10 17:56:40 +00:00
|
|
|
$(C1541) -attach contiki-2.d64 -write dummy.cfg contiki.cfg,u
|
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../cpu/6502/dhcp/dhcp-client.c64 dhcp,p
|
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../examples/email/email-client.c64 email,p
|
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../examples/ftp/ftp-client.c64 ftp,p
|
2012-02-10 16:19:40 +00:00
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../../contikiprojects/vandenbrande.com/twitter/platform/c64/breadbox64.c64 breadbox64,p
|
2012-02-10 17:56:40 +00:00
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../cpu/6502/dhcp/cs8900a.eth cs8900a.eth,u
|
|
|
|
$(C1541) -attach contiki-2.d64 -write ../../cpu/6502/dhcp/lan91c96.eth lan91c96.eth,u
|
|
|
|
$(C1541) -attach contiki-2.d64 -write $(CC65_HOME)/mou/c64-1351.mou c64-1351.mou,u
|
2010-02-03 23:52:31 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
$(eval $(call makes,c128))
|
|
|
|
|
|
|
|
c128-1-disk: c128-makes
|
2010-08-05 22:50:19 +00:00
|
|
|
$(C1541) -format contiki,00 d71 contiki-1.d71
|
2012-02-10 17:56:40 +00:00
|
|
|
$(C1541) -attach contiki-1.d71 -write dummy.cfg contiki.cfg,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../cpu/6502/dhcp/dhcp-client.c128 dhcp,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webserver/webserver-example.c128 webserver,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webbrowser/webbrowser.c128 webbrowser,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/wget/wget.c128 wget,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/irc/irc-client.c128 irc,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/email/email-client.c128 email,p
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/ftp/ftp-client.c128 ftp,p
|
2012-02-10 16:19:40 +00:00
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../../contikiprojects/vandenbrande.com/twitter/platform/c128/breadbox64.c128 breadbox64,p
|
2012-02-10 17:56:40 +00:00
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../cpu/6502/dhcp/cs8900a.eth cs8900a.eth,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../cpu/6502/dhcp/lan91c96.eth lan91c96.eth,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write $(CC65_HOME)/mou/c128-1351.mou c128-1351.mou,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webserver/httpd-cfs/index.htm index.htm,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webserver/httpd-cfs/backgrnd.gif backgrnd.gif,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webserver/httpd-cfs/contiki.gif contiki.gif,u
|
|
|
|
$(C1541) -attach contiki-1.d71 -write ../../examples/webserver/httpd-cfs/notfound.htm notfound.htm,u
|
2010-09-29 22:41:37 +00:00
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
$(eval $(call makes,atari))
|
|
|
|
|
|
|
|
atari-1-disk: atari-makes
|
2010-09-29 22:41:37 +00:00
|
|
|
mkdir -p atr
|
|
|
|
cp ../atari/dos.sys atr/dos.sys
|
|
|
|
cp ../atari/dup.sys atr/dup.sys
|
|
|
|
cp dummy.cfg atr/contiki.cfg
|
|
|
|
cp ../../cpu/6502/dhcp/dhcp-client.atari atr/dhcp.com
|
|
|
|
cp ../../examples/webserver/webserver-example.atari atr/webserve.com
|
|
|
|
cp ../../examples/webbrowser/webbrowser.atari atr/webbrows.com
|
|
|
|
cp ../../examples/webserver/httpd-cfs/index.htm atr/index.htm
|
|
|
|
cp ../../examples/webserver/httpd-cfs/backgrnd.gif atr/backgrnd.gif
|
|
|
|
cp ../../examples/webserver/httpd-cfs/contiki.gif atr/contiki.gif
|
|
|
|
cp ../../examples/webserver/httpd-cfs/notfound.htm atr/notfound.htm
|
|
|
|
$(DIR2ATR) -b Dos25 1040 contiki-1.atr atr
|
|
|
|
rm -r atr
|
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
atari-2-disk: atari-makes
|
2010-10-01 22:38:39 +00:00
|
|
|
mkdir -p atr
|
|
|
|
cp ../atari/dos.sys atr/dos.sys
|
|
|
|
cp ../atari/dup.sys atr/dup.sys
|
|
|
|
cp dummy.cfg atr/contiki.cfg
|
|
|
|
cp ../../cpu/6502/dhcp/dhcp-client.atari atr/dhcp.com
|
|
|
|
cp ../../examples/wget/wget.atari atr/wget.com
|
|
|
|
cp ../../examples/irc/irc-client.atari atr/irc.com
|
|
|
|
$(DIR2ATR) -b Dos25 1040 contiki-2.atr atr
|
|
|
|
rm -r atr
|
|
|
|
|
2010-10-04 22:13:45 +00:00
|
|
|
atari-3-disk: atari-makes
|
2010-10-23 20:39:47 +00:00
|
|
|
mkdir -p atr
|
|
|
|
cp ../atari/dos.sys atr/dos.sys
|
|
|
|
cp ../atari/dup.sys atr/dup.sys
|
|
|
|
cp dummy.cfg atr/contiki.cfg
|
|
|
|
cp ../../cpu/6502/dhcp/dhcp-client.atari atr/dhcp.com
|
|
|
|
cp ../../examples/email/email-client.atari atr/email.com
|
|
|
|
cp ../../examples/ftp/ftp-client.atari atr/ftp.com
|
|
|
|
$(DIR2ATR) -b Dos25 1040 contiki-3.atr atr
|
|
|
|
rm -r atr
|
|
|
|
|
|
|
|
atari-4-disk: atari-makes
|
2010-09-29 22:41:37 +00:00
|
|
|
mkdir -p atr
|
2012-02-10 17:56:40 +00:00
|
|
|
cp ../atari/dos.sys atr/dos.sys
|
|
|
|
cp ../atari/dup.sys atr/dup.sys
|
|
|
|
cp dummy.cfg atr/contiki.cfg
|
|
|
|
cp ../../cpu/6502/dhcp/dhcp-client.atari atr/dhcp.com
|
2012-02-10 16:19:40 +00:00
|
|
|
cp ../../../contikiprojects/vandenbrande.com/twitter/platform/atari/breadbox64.atari atr/breadbox.com
|
2010-10-23 20:39:47 +00:00
|
|
|
$(DIR2ATR) -b Dos25 1040 contiki-4.atr atr
|
2010-09-29 22:41:37 +00:00
|
|
|
rm -r atr
|