From b41bb047096065b0d519779fe4f091737947e6f0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 8 Jul 2013 01:56:50 +0000 Subject: added meta-makefile git-svn-id: https://svn.spreadspace.org/pic/trunk@61 a09c6847-51d9-44de-8ef2-e725cf50f3c7 --- bootloader/Makefile | 11 ++++++++--- bootloader/Makefile-887 | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 bootloader/Makefile-887 (limited to 'bootloader') diff --git a/bootloader/Makefile b/bootloader/Makefile index 7aa7390..370a652 100644 --- a/bootloader/Makefile +++ b/bootloader/Makefile @@ -20,7 +20,12 @@ ## along with spreadspace pic utils. If not, see . ## -PROJECT := bootloader-887 -PROC_TYPE := 16F887 +ifndef TARGET +$(error You need to specify a target, call make with TARGET=xyz) +endif -include ../include.mk +all: + $(MAKE) -f Makefile-$(TARGET) $@ + +%: + $(MAKE) -f Makefile-$(TARGET) $@ \ No newline at end of file diff --git a/bootloader/Makefile-887 b/bootloader/Makefile-887 new file mode 100644 index 0000000..7aa7390 --- /dev/null +++ b/bootloader/Makefile-887 @@ -0,0 +1,26 @@ +## +## spreadspace pic utils +## +## +## Copyright (C) 2011 Christian Pointner +## +## This file is part of spreadspace pic utils. +## +## spreadspace pic utils is free software: you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation, either version 3 of the License, or +## any later version. +## +## spreadspace pic utils is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with spreadspace pic utils. If not, see . +## + +PROJECT := bootloader-887 +PROC_TYPE := 16F887 + +include ../include.mk -- cgit v1.2.3