diff --git a/configs/z16f2800100zcog/ostest/Make.defs b/configs/z16f2800100zcog/ostest/Make.defs index 758416249e..542a1f7212 100644 --- a/configs/z16f2800100zcog/ostest/Make.defs +++ b/configs/z16f2800100zcog/ostest/Make.defs @@ -125,12 +125,12 @@ EXEEXT = .hex # object files into an archive define COMPILE - @echo "CC: $1" - @$(CC) $(CFLAGS) $1 1>/dev/null + @#echo "CC: $1" + @$(CC) $(CFLAGS) $1 endef define ASSEMBLE - @echo "AS: $1" + @#echo "AS: $1" @$(AS) -c $(AFLAGS) $1 endef diff --git a/configs/z16f2800100zcog/src/Makefile b/configs/z16f2800100zcog/src/Makefile index 85997d0bda..fa8b5ac2ed 100644 --- a/configs/z16f2800100zcog/src/Makefile +++ b/configs/z16f2800100zcog/src/Makefile @@ -52,11 +52,16 @@ OBJS = $(AOBJS) $(COBJS) all: libboard$(LIBEXT) -$(AOBJS): %$(OBJEXT): %.S +$(ASRCS) $(HEAD_ASRC): %$(ASMEXT): %.S + @$(CPP) $(CPPFLAGS) $< -o $@.tmp + @cat $@.tmp | sed -e "s/^#/;/g" > $@ + @rm $@.tmp + +$(AOBJS): %$(OBJEXT): %$(ASMEXT) $(call ASSEMBLE, $<, $@) $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c - $(call COMPILE, $<, $@) + $(call COMPILE, `cygpath -w $<`, $@) libboard$(LIBEXT): $(OBJS) @( for obj in $(OBJS) ; do \