Added uip-udp-packet.c. Made native the default target. Added a 'targets' target that lists all available targets.
This commit is contained in:
parent
b8bf33f53f
commit
deba5cfcd5
|
@ -8,15 +8,18 @@ OBJECTDIR = obj_$(TARGET)
|
||||||
ifeq ($(TARGET),)
|
ifeq ($(TARGET),)
|
||||||
-include Makefile.target
|
-include Makefile.target
|
||||||
ifeq ($(TARGET),)
|
ifeq ($(TARGET),)
|
||||||
$(warning TARGET not defined, using netsim target)
|
$(warning TARGET not defined, using native target)
|
||||||
TARGET=netsim
|
TARGET=native
|
||||||
else
|
else
|
||||||
$(warning using saved target '$(TARGET)')
|
$(warning using saved target '$(TARGET)')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget]"
|
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget] [targets]"
|
||||||
|
|
||||||
|
targets:
|
||||||
|
@ls -1 $(CONTIKI)/platform | grep -v CVS
|
||||||
|
|
||||||
savetarget:
|
savetarget:
|
||||||
-@rm -f Makefile.target
|
-@rm -f Makefile.target
|
||||||
|
@ -33,7 +36,7 @@ CFS = cfs.c cfs-ram.c
|
||||||
CTK = ctk.c
|
CTK = ctk.c
|
||||||
UIP = uip.c uiplib.c resolv.c tcpip.c psock.c hc.c uip-split.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-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
|
NET = $(UIP) uaodv.c uaodv-rt.c
|
||||||
|
|
||||||
CTKVNC = $(CTK) ctk-vncserver.c libconio.c vnc-server.c vnc-out.c \
|
CTKVNC = $(CTK) ctk-vncserver.c libconio.c vnc-server.c vnc-out.c \
|
||||||
|
@ -131,12 +134,10 @@ endif
|
||||||
|
|
||||||
ifndef CUSTOM_RULE_LINK
|
ifndef CUSTOM_RULE_LINK
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) contiki-$(TARGET).a
|
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) contiki-$(TARGET).a
|
||||||
$(CC) $(LDFLAGS) $(TARGET_STARTFILES) $(filter-out %.a,$^) $(filter %.a,$^) $(TARGET_LIBFILES) -o $@
|
$(CC) $(LDFLAGS) $(TARGET_STARTFILES) $(filter-out %.a,$^) $(filter %.a,$^) $(TARGET_LIBFILES) -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The target below looks weird, but I had to add the @ to avoid complaints
|
# The target below looks weird, but I had to add the @ to avoid complaints
|
||||||
# from GNU make about "*** No rule to make target `XXX'. Stop."
|
# from GNU make about "*** No rule to make target `XXX'. Stop."
|
||||||
%: %.$(TARGET)
|
%: %.$(TARGET)
|
||||||
@
|
@
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue