nes-proj/Makefile.include

41 lines
858 B
Makefile
Raw Normal View History

2010-02-21 23:47:12 +00:00
LINKERSCRIPT = $(MC1322X)/mc1322x.lds
LIBMC1322X = $(MC1322X)/libmc1322x
2010-02-21 22:34:27 +00:00
2010-02-21 23:47:12 +00:00
include $(MC1322X)/config.mk
2010-02-21 22:34:27 +00:00
2010-02-21 23:47:12 +00:00
include $(MC1322X)/board/Makefile.board
include $(MC1322X)/libmc1322x/Makefile.lib
2010-02-21 22:34:27 +00:00
ARCH = arm
CPU = arm7tdmi-s
export ARCH CPU VENDOR
2010-02-21 23:47:12 +00:00
$(OBJDIR)/isr.o: isr.c
$(CC) $(CFLAGS) $(ARM_FLAGS) $< -c -o $@
2010-02-21 22:34:27 +00:00
2010-02-21 23:47:12 +00:00
%.o: %.c
$(CC) $(CFLAGS) $(THUMB_FLAGS) $< -c
2010-02-21 22:34:27 +00:00
2010-02-21 23:47:12 +00:00
$(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) $(THUMB_FLAGS) -c $< -o $@
2010-02-21 22:34:27 +00:00
clean:
find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o' -o -name '*.a' -o -name '*.obj' \) -print \
| 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 -f $(ALL)
mrproper \
distclean: clobber