summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-07-08 01:56:50 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2013-07-08 01:56:50 (GMT)
commitb41bb047096065b0d519779fe4f091737947e6f0 (patch)
tree3ae6b3129baf195e676e6db596b141f462abb6ad
parentbd153583896886e026503ec99e0870969d374a23 (diff)
added meta-makefile
git-svn-id: https://svn.spreadspace.org/pic/trunk@61 a09c6847-51d9-44de-8ef2-e725cf50f3c7
-rw-r--r--bootloader/Makefile11
-rw-r--r--bootloader/Makefile-88726
2 files changed, 34 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
##
-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 <equinox@spreadspace.org>
+##
+## 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 <http://www.gnu.org/licenses/>.
+##
+
+PROJECT := bootloader-887
+PROC_TYPE := 16F887
+
+include ../include.mk