Need to use cygpath consistently for compilation in subdirectories

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1439 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-12-08 21:21:46 +00:00
parent 0a7fb63270
commit c0dfcb5084
13 changed files with 33 additions and 32 deletions

View File

@ -77,10 +77,10 @@ $(HEAD_GENSRC) $(GENSRCS) : %$(ASMEXT): %.S
@rm $@.tmp
$(AOBJS) $(HEAD_AOBJ): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, `cygpath -w $<`, $@)
$(call ASSEMBLE, $<, $@)
$(COBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libarch$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \

View File

@ -142,12 +142,13 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \

View File

@ -142,12 +142,12 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -38,11 +38,11 @@
-sort NAME=ascending -warn -NOdebug -NOigcase
RANGE ROM $000000 : $03FFFF
RANGE RAM $B7E000 : $B7FFFF
RANGE EXTIO $000000 : $00FFFF
RANGE INTIO $000000 : $0000FF
RANGE RAM $B80000 : $BFFFFF
RANGE EXTIO $0 : $FFFF
RANGE INTIO $0 : $FF
CHANGE STRSECT = ROM
CHANGE STRSECT is ROM
ORDER .RESET,.IVECTS,.STARTUP,CODE,DATA
COPY DATA ROM
@ -64,17 +64,17 @@ DEFINE __CS0_LBR_INIT_PARAM = $10
DEFINE __CS0_UBR_INIT_PARAM = $1f
DEFINE __CS0_CTL_INIT_PARAM = $a8
DEFINE __CS0_BMC_INIT_PARAM = $02
DEFINE __CS1_LBR_INIT_PARAM = $b8
DEFINE __CS1_UBR_INIT_PARAM = $b9
DEFINE __CS1_LBR_INIT_PARAM = $c0
DEFINE __CS1_UBR_INIT_PARAM = $c7
DEFINE __CS1_CTL_INIT_PARAM = $28
DEFINE __CS1_BMC_INIT_PARAM = $02
DEFINE __CS2_LBR_INIT_PARAM = $80
DEFINE __CS2_UBR_INIT_PARAM = $bf
DEFINE __CS2_CTL_INIT_PARAM = $28
DEFINE __CS2_BMC_INIT_PARAM = $02
DEFINE __CS3_LBR_INIT_PARAM = $60
DEFINE __CS3_UBR_INIT_PARAM = $7f
DEFINE __CS3_CTL_INIT_PARAM = $a8
DEFINE __CS2_BMC_INIT_PARAM = $81
DEFINE __CS3_LBR_INIT_PARAM = $00
DEFINE __CS3_UBR_INIT_PARAM = $00
DEFINE __CS3_CTL_INIT_PARAM = $00
DEFINE __CS3_BMC_INIT_PARAM = $02
DEFINE __RAM_CTL_INIT_PARAM = $C0
DEFINE __RAM_ADDR_U_INIT_PARAM = $B7
@ -84,9 +84,9 @@ DEFINE __FLASH_ADDR_U_INIT_PARAM = $00
define _SYS_CLK_FREQ = 50000000
define _OSC_FREQ = 5000000
define _SYS_CLK_SRC = 1
define _OSC_FREQ_MULT = 10
define __PLL_CTL0_INIT_PARAM = $41
define _SYS_CLK_SRC = 0
define _OSC_FREQ_MULT = 1
define __PLL_CTL0_INIT_PARAM = $40
define _zsl_g_clock_xdefine = 50000000

View File

@ -68,7 +68,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \

View File

@ -136,12 +136,12 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -136,12 +136,12 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
endef
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
eendef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \

View File

@ -162,12 +162,12 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \

View File

@ -162,12 +162,12 @@ endef
define COMPILE
@#echo "CC: $1"
@$(CC) $(CFLAGS) $1
@(wfile=`cygpath -w $1`; $(CC) $(CFLAGS) $$wfile)
endef
define ASSEMBLE
@#echo "AS: $1"
@$(AS) -c $(AFLAGS) $1
@(wfile=`cygpath -w $1`; $(AS) $(AFLAGS) $$wfile)
endef
define ARCHIVE

View File

@ -61,7 +61,7 @@ $(AOBJS): %$(OBJEXT): %$(ASMEXT)
$(call ASSEMBLE, $<, $@)
$(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(call COMPILE, `cygpath -w $<`, $@)
$(call COMPILE, $<, $@)
libboard$(LIBEXT): $(OBJS)
@( for obj in $(OBJS) ; do \