add new base makefile

This commit is contained in:
Mariano Alvira 2010-02-22 12:24:56 -05:00
parent 4a77cb7d76
commit afb39de8df

View file

@ -15,7 +15,6 @@ ifndef ISR
ISR = $(MC1322X)/src/isr.o ISR = $(MC1322X)/src/isr.o
endif endif
ARCH = arm ARCH = arm
CPU = arm7tdmi-s CPU = arm7tdmi-s
export ARCH CPU VENDOR export ARCH CPU VENDOR
@ -36,20 +35,12 @@ $(ISR): $(ISR:.o=.c)
$(filter %.o %.a,$+) -o $@ $(filter %.o %.a,$+) -o $@
clean: clean:
find . -type f \ find $(MC1322X) -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \ \( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o' -o -name '*.a' -o -name '*.obj' \) -print \ -o -name '*.o' -o -name '*.a' -o -name '*.obj' -o -name '*.elf' \) -print \
| xargs rm -f | xargs rm -f
rm -f $(ALL) $(OBJS)
clobber: clean
find . -type f \
\( -name .depend -o -name '*.srec' -o -name '*.bin' -o -name '*.dis' -o -name '*.map' -o -name '*.obj' \) \
-print \
| xargs rm -f
rm -f $(OBJS) *.bak tags TAGS
rm -fr *.*~ rm -fr *.*~
rm -f $(ALL)
clobber \
mrproper \ mrproper \
distclean: clobber distclean: clean