Fixing makefile for ports.
This commit is contained in:
@@ -100,7 +100,7 @@ ports: atmega168 at91sam7s bdk-atxx4-mstp
|
|||||||
atmega168: ports/atmega168/Makefile
|
atmega168: ports/atmega168/Makefile
|
||||||
make -C ports/atmega168 clean all
|
make -C ports/atmega168 clean all
|
||||||
|
|
||||||
at91sam7s: ports/at91sam7s/Makefile
|
at91sam7s: ports/at91sam7s/makefile
|
||||||
make -C ports/at91sam7s clean all
|
make -C ports/at91sam7s clean all
|
||||||
|
|
||||||
bdk-atxx4-mstp: ports/bdk-atxx4-mstp/Makefile
|
bdk-atxx4-mstp: ports/bdk-atxx4-mstp/Makefile
|
||||||
|
|||||||
@@ -126,9 +126,12 @@ $(LIBRARY): $(COREOBJ) Makefile
|
|||||||
.s.o:
|
.s.o:
|
||||||
$(CC) -c $(AFLAGS) $*.s -o $@
|
$(CC) -c $(AFLAGS) $*.s -o $@
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
touch Makefile
|
|
||||||
rm $(COBJ) $(AOBJ) $(COREOBJ)
|
rm $(COBJ) $(AOBJ) $(COREOBJ)
|
||||||
rm $(TARGET).elf $(TARGET).bin $(TARGET).dmp $(TARGET).map
|
rm $(TARGET).elf $(TARGET).bin $(TARGET).dmp $(TARGET).map
|
||||||
rm $(LIBRARY)
|
rm $(LIBRARY)
|
||||||
rm *.lst
|
rm *.lst
|
||||||
|
|
||||||
|
## Other dependencies
|
||||||
|
-include $(shell mkdir dep 2>/dev/null) $(wildcard dep/*)
|
||||||
|
|||||||
Reference in New Issue
Block a user