Added uip-udp-packet.c. Made native the default target. Added a 'targets' target that lists all available targets.

This commit is contained in:
adamdunkels 2006-08-31 09:36:29 +00:00
parent b8bf33f53f
commit deba5cfcd5

View File

@ -8,15 +8,18 @@ OBJECTDIR = obj_$(TARGET)
ifeq ($(TARGET),)
-include Makefile.target
ifeq ($(TARGET),)
$(warning TARGET not defined, using netsim target)
TARGET=netsim
$(warning TARGET not defined, using native target)
TARGET=native
else
$(warning using saved target '$(TARGET)')
endif
endif
usage:
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget]"
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget] [targets]"
targets:
@ls -1 $(CONTIKI)/platform | grep -v CVS
savetarget:
-@rm -f Makefile.target
@ -33,7 +36,7 @@ CFS = cfs.c cfs-ram.c
CTK = ctk.c
UIP = uip.c uiplib.c resolv.c tcpip.c psock.c hc.c uip-split.c \
uip-fw.c uip-fw-service.c uipbuf.c uip_arp.c uiplib.c tcpdump.c \
uip-neighbor.c
uip-neighbor.c uip-udp-packet.c
NET = $(UIP) uaodv.c uaodv-rt.c
CTKVNC = $(CTK) ctk-vncserver.c libconio.c vnc-server.c vnc-out.c \
@ -138,5 +141,3 @@ endif
# from GNU make about "*** No rule to make target `XXX'. Stop."
%: %.$(TARGET)
@