2007-09-11 12:12:59 +00:00
|
|
|
#
|
|
|
|
# Makefile for PC-6001 using z80/SDCC
|
|
|
|
# @author Takahide Matsutsuka <markn@markn.org>
|
|
|
|
#
|
2007-09-19 12:44:45 +00:00
|
|
|
# $Id: Makefile,v 1.2 2007/09/19 12:44:45 matsutsuka Exp $
|
2007-09-11 12:12:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
CONTIKI = ../..
|
|
|
|
TARGET=pc-6001
|
|
|
|
APPS_DESKTOP = program-handler calc process-list shell about
|
|
|
|
APPS_NETWORK = netconf cmdd
|
|
|
|
|
|
|
|
# editor netconf dhcp webbrowser ftp irc email telnet telnetd
|
|
|
|
# cmdd codeprop webserver vnc
|
|
|
|
# directory
|
|
|
|
|
|
|
|
PLATFORM_APPS_DESKTOP = multithread tinysample
|
|
|
|
PLATFORM_APPS_NETWORK = webserver-mini
|
|
|
|
|
|
|
|
#defualt values
|
|
|
|
#16K, 32K, or ROM
|
|
|
|
MEMORY=32K
|
|
|
|
#PC6001, PC6001A, or PC6001MK2
|
|
|
|
ARCH=PC6001
|
|
|
|
|
|
|
|
APPS = $(APPS_DESKTOP)
|
|
|
|
PLATFORM_APPS=$(PLATFORM_APPS_DESKTOP)
|
|
|
|
|
|
|
|
all: p6
|
|
|
|
|
|
|
|
p6:
|
|
|
|
rm -f contiki.ihex
|
|
|
|
make contiki
|
|
|
|
p62:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki ARCH=PC6001MK2
|
|
|
|
p6A:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki ARCH=PC6001A
|
|
|
|
minimal:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki MEMORY=16K CONTIKI_TARGET_MAIN=contiki-minimal-main.c
|
|
|
|
|
|
|
|
serial:
|
|
|
|
rm -f contiki.ihex;
|
2007-09-19 12:44:45 +00:00
|
|
|
make contiki MEMORY=32K CONTIKI_TARGET_MAIN=contiki-serial-main.c
|
2007-09-11 12:12:59 +00:00
|
|
|
|
|
|
|
rom:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki.rom MEMORY=ROM CONTIKI_TARGET_MAIN=contiki-rom-main.c
|
|
|
|
slip:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki APPS="$(APPS_NETWORK)" PLATFORM_APPS="$(PLATFORM_APPS_NETWORK)" CONTIKI_TARGET_MAIN=contiki-slip-main.c
|
2007-09-19 12:44:45 +00:00
|
|
|
web:
|
|
|
|
rm -f contiki.ihex;
|
|
|
|
make contiki APPS="$(APPS_DESKTOP) $(APPS_NETWORK)" PLATFORM_APPS="$(PLATFORM_APPS_NETWORK)" CONTIKI_TARGET_MAIN=contiki-web-main.c
|
2007-09-11 12:12:59 +00:00
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|