5f3296e943
Now tcpip_output() is a function pointer that is supposed to be set via the macro tcpip_set_outputfunc(). Packet drivers do so on process startup. Thus if there are several packet drivers in a Contiki system the one started last is the one actually used. This behaviour is especially useful for the 'IP forwarding' "meta" packet driver.
29 lines
905 B
Makefile
29 lines
905 B
Makefile
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
|
|
|
|
CONTIKI_TARGET_SOURCEFILES = tapdev-drv.c tapdev.c contiki-main.c \
|
|
dlloader.c clock.c $(CTK) $(CTKGTK) cfs-posix.c
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
.SUFFIXES:
|
|
|
|
### Define the CPU directory
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
include $(CONTIKI_CPU)/Makefile.native
|
|
|
|
### Compiler definitions
|
|
CFLAGS += -DCTK_GTKSIM_SERVICE_PNGDIR=\"$(CONTIKI)/platform/gtk\" \
|
|
`pkg-config --cflags gtk+-2.0`
|
|
TARGET_LIBFILES = `pkg-config --libs gtk+-2.0`
|