2006-06-24 06:06:19 +00:00
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
APPS+=process-list webserver program-handler editor irc calc webbrowser email \
|
|
|
|
shell netconf dhcp ftp
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS = . ctk net
|
|
|
|
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
|
|
|
|
|
|
|
|
CTKGTK = $(CTK) ctk-gtksim.c ctk-draw.c ctk-gtksim-service.c libconio.c \
|
|
|
|
ctk-gtksim-draw.c
|
|
|
|
|
2007-05-20 21:29:39 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES = tapdev-drv.c tapdev.c contiki-main.c \
|
2006-06-24 06:06:19 +00:00
|
|
|
dlloader.c clock.c $(CTK) $(CTKGTK) cfs-posix.c
|
|
|
|
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### Define the CPU directory
|
2007-03-31 18:44:14 +00:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
|
|
include $(CONTIKI_CPU)/Makefile.native
|
2006-06-24 06:06:19 +00:00
|
|
|
|
|
|
|
### Compiler definitions
|
2007-03-31 18:44:14 +00:00
|
|
|
CFLAGS += -DCTK_GTKSIM_SERVICE_PNGDIR=\"$(CONTIKI)/platform/gtk\" \
|
|
|
|
`pkg-config --cflags gtk+-2.0`
|
2007-05-19 21:46:43 +00:00
|
|
|
TARGET_LIBFILES = `pkg-config --libs gtk+-2.0`
|