Integrated WinPcap driver into platform/win32 Cygwin build.

This commit is contained in:
oliverschmidt 2007-04-11 00:32:31 +00:00
parent 4bf1ecc20e
commit 0b140bdec4

View file

@ -2,12 +2,15 @@ ifndef CONTIKI
${error CONTIKI not defined! You must specify where CONTIKI resides!} ${error CONTIKI not defined! You must specify where CONTIKI resides!}
endif endif
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
CONTIKI_TARGET_DIRS = . cfs ctk loader CONTIKI_TARGET_DIRS = . cfs ctk loader
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o} CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
CONTIKI_TARGET_SOURCEFILES = contiki-main.c cfs-win32.c ctk-console.c dll-loader.c CONTIKI_TARGET_SOURCEFILES = contiki-main.c cfs-win32.c ctk-console.c dll-loader.c
CONTIKI_SOURCEFILES += $(CTK) ctk-conio-service.c ctk-draw.c $(CONTIKI_TARGET_SOURCEFILES) CONTIKI_SOURCEFILES += $(CTK) ctk-conio-service.c ctk-draw.c wpcap.c wpcap-service.c \
$(CONTIKI_TARGET_SOURCEFILES)
.SUFFIXES: .SUFFIXES:
@ -29,7 +32,7 @@ endef
${foreach PRG,$(PRGS),${eval ${call PRG_TEMPLATE,$(PRG),${call APPNAME,$(PRG)}}}} ${foreach PRG,$(PRGS),${eval ${call PRG_TEMPLATE,$(PRG),${call APPNAME,$(PRG)}}}}
${foreach DSC,$(DSCS),${eval ${call DSC_TEMPLATE,$(DSC),${call APPNAME,$(DSC)}}}} ${foreach DSC,$(DSCS),${eval ${call DSC_TEMPLATE,$(DSC),${call APPNAME,$(DSC)}}}}
### Generic module-compile and -link rule, no prerequisites here! ### Generic module-compile and -link rules, no prerequisites here
### (The *.d files contain the full module-compile prerequisites) ### (The *.d files contain the full module-compile prerequisites)
${sort ${foreach PRG,$(PRGS), ${addprefix $(OBJECTDIR)/, \ ${sort ${foreach PRG,$(PRGS), ${addprefix $(OBJECTDIR)/, \
$(${call APPNAME,$(PRG)_src:.c=.o})}}}: $(${call APPNAME,$(PRG)_src:.c=.o})}}}: