2011-10-25 19:16:01 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011 Arduino. All right reserved.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2012-03-23 16:24:17 +01:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
2011-10-25 19:16:01 +02:00
|
|
|
# See the GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
#
|
|
|
|
|
2011-05-31 23:09:42 +02:00
|
|
|
# Makefile for compiling libchip
|
|
|
|
|
2012-05-02 17:00:55 +02:00
|
|
|
SUBMAKE_OPTIONS=--no-builtin-rules --no-builtin-variables --no-print-directory
|
2011-05-31 23:09:42 +02:00
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Rules
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
2012-03-23 16:24:17 +01:00
|
|
|
# libsam_sam3s4c_gcc_rel.a libsam_sam3u4e_gcc_rel.a libsam_sam3x8e_gcc_rel.a libsam_sam3x8h_gcc_rel.a
|
2012-12-19 15:20:14 +01:00
|
|
|
all: libsam_sam3s4c_gcc_dbg.a libsam_sam3u4e_gcc_dbg.a libsam_sam3x8e_gcc_dbg.a libsam_sam3x8h_gcc_dbg.a arduino_due_x
|
2011-05-31 23:09:42 +02:00
|
|
|
|
2012-12-19 15:20:14 +01:00
|
|
|
.PHONY: arduino_due_u
|
2012-03-23 16:24:17 +01:00
|
|
|
arduino_due_u:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-01-13 19:09:07 +01:00
|
|
|
@echo --- Making $@
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo ---
|
2012-03-26 19:27:45 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due_u -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-01-13 19:09:07 +01:00
|
|
|
|
2012-12-19 15:20:14 +01:00
|
|
|
.PHONY: arduino_due_x
|
2012-03-23 16:24:17 +01:00
|
|
|
arduino_due_x:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Making $@
|
|
|
|
@echo ---
|
2012-03-26 19:27:45 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3X8E__ $(SUBMAKE_OPTIONS) OUTPUT_BIN=../../../variants/arduino_due_x -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
2011-09-12 01:55:10 +02:00
|
|
|
.PHONY: libsam_sam3s4c_gcc_dbg.a
|
|
|
|
libsam_sam3s4c_gcc_dbg.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-05-31 23:09:42 +02:00
|
|
|
@echo --- Making $@
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo ---
|
2011-09-06 21:05:41 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
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:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-05-31 23:09:42 +02:00
|
|
|
@echo --- Making $@
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo ---
|
2011-09-06 21:05:41 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3S4C__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
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:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-09-12 01:55:10 +02:00
|
|
|
@echo --- Making $@
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-09-12 01:55:10 +02:00
|
|
|
|
|
|
|
.PHONY: libsam_sam3u4e_gcc_rel.a
|
|
|
|
libsam_sam3u4e_gcc_rel.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-09-12 01:55:10 +02:00
|
|
|
@echo --- Making $@
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo ---
|
2011-09-12 01:55:10 +02:00
|
|
|
@$(MAKE) CHIP=__SAM3U4E__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2011-09-12 01:55:10 +02:00
|
|
|
|
2012-03-23 16:24:17 +01:00
|
|
|
.PHONY: libsam_sam3x8e_gcc_dbg.a
|
|
|
|
libsam_sam3x8e_gcc_dbg.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Making $@
|
|
|
|
@echo ---
|
|
|
|
@$(MAKE) CHIP=__SAM3X8E__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
|
|
|
.PHONY: libsam_sam3x8e_gcc_rel.a
|
|
|
|
libsam_sam3x8e_gcc_rel.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Making $@
|
|
|
|
@echo ---
|
|
|
|
@$(MAKE) CHIP=__SAM3X8E__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
|
|
|
.PHONY: libsam_sam3x8h_gcc_dbg.a
|
|
|
|
libsam_sam3x8h_gcc_dbg.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Making $@
|
|
|
|
@echo ---
|
|
|
|
@$(MAKE) CHIP=__SAM3X8H__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
|
|
|
.PHONY: libsam_sam3x8h_gcc_rel.a
|
|
|
|
libsam_sam3x8h_gcc_rel.a:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Making $@
|
|
|
|
@echo ---
|
|
|
|
@$(MAKE) CHIP=__SAM3X8H__ $(SUBMAKE_OPTIONS) -f sam3.mk
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
2011-05-31 23:09:42 +02:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
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 $@
|
|
|
|
|
2012-03-23 16:24:17 +01:00
|
|
|
@echo --- Cleaning sam3x8e release and debug
|
|
|
|
@$(MAKE) CHIP=__SAM3X8E__ $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
@$(MAKE) CHIP=__SAM3X8E__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
|
|
|
|
@echo --- Cleaning sam3x8h release and debug
|
|
|
|
@$(MAKE) CHIP=__SAM3X8H__ $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
|
|
|
@$(MAKE) CHIP=__SAM3X8H__ DEBUG=1 $(SUBMAKE_OPTIONS) -f sam3.mk $@
|
2012-05-02 17:00:55 +02:00
|
|
|
@echo ------------------------------------------------------------------------------------
|
2012-03-23 16:24:17 +01:00
|
|
|
|
2011-05-31 23:09:42 +02:00
|
|
|
|