2011-05-31 23:09:42 +02:00
|
|
|
# Makefile for compiling libchip
|
|
|
|
|
|
|
|
SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2011-07-13 01:20:40 +02:00
|
|
|
# libchip_sam3s4_gcc_rel.a
|
|
|
|
all: libchip_sam3s4_gcc_dbg.a
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
libchip_sam3s4_gcc_dbg.a:
|
|
|
|
@echo --- Making $@
|
2011-07-10 12:16:31 +02:00
|
|
|
@$(MAKE) CHIP=sam3s4 DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
libchip_sam3s4_gcc_rel.a:
|
|
|
|
@echo --- Making $@
|
2011-07-10 12:16:31 +02:00
|
|
|
@$(MAKE) CHIP=sam3s4 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@echo --- Cleaning sam3s4 release and debug
|
2011-07-10 12:16:31 +02:00
|
|
|
@$(MAKE) CHIP=sam3s4 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
@$(MAKE) CHIP=sam3s4 DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
|