2011-05-31 23:09:42 +02:00
|
|
|
# Makefile for compiling libchip
|
|
|
|
|
|
|
|
SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
# libsam_sam3s4c_gcc_rel.a libsam_sam3u4e_gcc_rel.a
|
|
|
|
all: libsam_sam3s4c_gcc_dbg.a libsam_sam3u4e_gcc_dbg.a
|
2011-05-31 23:09:42 +02:00
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
.PHONY: libsam_sam3s4c_gcc_dbg.a
|
|
|
|
libsam_sam3s4c_gcc_dbg.a:
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
|
|
|
@echo ---
|
2011-05-31 23:09:42 +02:00
|
|
|
@echo --- Making $@
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
2011-09-06 21:05:41 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2011-05-31 23:09:42 +02:00
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
.PHONY: libsam_sam3s4c_gcc_rel.a
|
|
|
|
libsam_sam3s4c_gcc_rel.a:
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
|
|
|
@echo ---
|
2011-05-31 23:09:42 +02:00
|
|
|
@echo --- Making $@
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
2011-09-06 21:05:41 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
2011-05-31 23:09:42 +02:00
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
.PHONY: libsam_sam3u4e_gcc_dbg.a
|
|
|
|
libsam_sam3u4e_gcc_dbg.a:
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@echo --- Making $@
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
|
|
|
|
|
|
|
.PHONY: libsam_sam3u4e_gcc_rel.a
|
|
|
|
libsam_sam3u4e_gcc_rel.a:
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@echo --- Making $@
|
2011-09-12 18:01:48 +02:00
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
|
|
|
|
2011-05-31 23:09:42 +02:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2011-09-06 21:05:41 +02:00
|
|
|
@echo --- Cleaning sam3s4c release and debug
|
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
2011-05-31 23:09:42 +02:00
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
@echo --- Cleaning sam3u4e release and debug
|
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
|
2011-05-31 23:09:42 +02:00
|
|
|
|