1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-11 22:24:13 +01:00
Arduino/hardware/sam/system/libsam/build_gcc/Makefile

26 lines
718 B
Makefile
Raw Normal View History

# Makefile for compiling libchip
SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables
#-------------------------------------------------------------------------------
# Rules
#-------------------------------------------------------------------------------
all: libchip_sam3s4_gcc_dbg.a libchip_sam3s4_gcc_rel.a
libchip_sam3s4_gcc_dbg.a:
@echo --- Making $@
@$(MAKE) CHIP=sam3s4 DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3s.mk
libchip_sam3s4_gcc_rel.a:
@echo --- Making $@
@$(MAKE) CHIP=sam3s4 $(SUBMAKE_OPTIONS) -f sam3s.mk
.PHONY: clean
clean:
@echo --- Cleaning sam3s4 release and debug
@$(MAKE) CHIP=sam3s4 $(SUBMAKE_OPTIONS) -f sam3s.mk $@
@$(MAKE) CHIP=sam3s4 DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3s.mk $@