Adjusted the win32 'platform build' (which creates an old-school Contiki OS) to the changed dependency handling.
The special module-compile rule didn't work anymore now that the make doesn't create the .d beforehand. However the ordinary compile rule in Makefile.include turns out to create object files linkable as DLLs - although with warnings. The downside of these warnings seems to be outweight by the benefit of a simpler Makefile.
This commit is contained in:
parent
882e4692c7
commit
4f9c4d7dda
1 changed files with 2 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
|||
#
|
||||
# Author: Oliver Schmidt <ol.sc@web.de>
|
||||
#
|
||||
# $Id: Makefile.win32,v 1.17 2008/11/10 22:52:43 oliverschmidt Exp $
|
||||
# $Id: Makefile.win32,v 1.18 2010/01/28 12:46:16 oliverschmidt Exp $
|
||||
#
|
||||
|
||||
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
||||
|
@ -65,11 +65,7 @@ endef
|
|||
${foreach PRG,$(PRGS),${eval ${call prg_template,$(PRG),${call appname,$(PRG)}}}}
|
||||
${foreach DSC,$(DSCS),${eval ${call dsc_template,$(DSC),${call appname,$(DSC)}}}}
|
||||
|
||||
### Generic module-compile and -link rules, no prerequisites here
|
||||
### (The *.d files contain the full module-compile prerequisites)
|
||||
${sort ${foreach PRG,$(PRGS), ${addprefix $(OBJECTDIR)/, \
|
||||
$(${call appname,$(PRG)_src:.c=.o})}}}:
|
||||
$(CC) $(CFLAGS) -D_USRDLL -c $< -o $@
|
||||
### Generic module-link rules, no prerequisites here
|
||||
$(PRGS:=.prg):
|
||||
$(LD) -shared $^ contiki-main.$(TARGET).a -o $@
|
||||
$(DSCS:=.dsc):
|
||||
|
|
Loading…
Reference in a new issue