Added dependency handling and README.VC
This commit is contained in:
parent
f2678ff7b4
commit
7c3adef1c8
@ -36,8 +36,7 @@
|
|||||||
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
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_SOURCEFILES = contiki-main.c clock.c cfs-win32-dir.c \
|
CONTIKI_TARGET_SOURCEFILES = contiki-main.c clock.c cfs-win32-dir.c ctk-console.c
|
||||||
ctk-console.c
|
|
||||||
|
|
||||||
CONTIKI_SOURCEFILES += $(CTK) cfs-posix.c ctk-conio.c wpcap.c wpcap-drv.c \
|
CONTIKI_SOURCEFILES += $(CTK) cfs-posix.c ctk-conio.c wpcap.c wpcap-drv.c \
|
||||||
$(CONTIKI_TARGET_SOURCEFILES)
|
$(CONTIKI_TARGET_SOURCEFILES)
|
||||||
@ -88,6 +87,7 @@ VCFLAGS = -Od -Z7 $(filter-out -Wall -g -O,$(CFLAGS))
|
|||||||
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
||||||
$(OBJECTDIR)/%.o: %.c
|
$(OBJECTDIR)/%.o: %.c
|
||||||
cl -nologo $(VCFLAGS) -c $< -Fo$@
|
cl -nologo $(VCFLAGS) -c $< -Fo$@
|
||||||
|
@makedepend $(CFLAGS) -o.o -f- $< 2> nul: | sed -e s!$(<:.c=.o)!$@! -e s!\\!/!g > $(@:.o=.d)
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_CO = 1
|
CUSTOM_RULE_C_TO_CO = 1
|
||||||
%.co: %.c
|
%.co: %.c
|
||||||
|
18
platform/win32/README-VC
Normal file
18
platform/win32/README-VC
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
The 'win32' target allows projects to be built using two different toolchains:
|
||||||
|
|
||||||
|
1. GCC / Cygwin
|
||||||
|
|
||||||
|
Start your build from a Cygwin Shell and set TARGET=win32 to use this toolchain.
|
||||||
|
The result will be similiar to the 'minimal-net' target. The advantage of 'win32'
|
||||||
|
over 'minimal-net' is the support for GUI applications using the Contiki Toolkit
|
||||||
|
(CTK). For this reason several projects in the /examples directory are built in
|
||||||
|
the target 'win32' by default.
|
||||||
|
|
||||||
|
2. VC++ / GnuWin
|
||||||
|
|
||||||
|
Start your build from a VC++ Command Prompt and set TARGET=win32 to use this
|
||||||
|
toolchain. You need however a few addional tools in your PATH:
|
||||||
|
- cp.exe / rm.exe (http://gnuwin32.sourceforge.net/packages/coreutils.htm)
|
||||||
|
- make.exe (http://gnuwin32.sourceforge.net/packages/make.htm)
|
||||||
|
- sed.exe (http://gnuwin32.sourceforge.net/packages/sed.htm)
|
||||||
|
- makedepend.exe (http://llg.cubic.org/docs/vc7.html)
|
Loading…
Reference in New Issue
Block a user