temperaturecontrol: allow setting background tool without activating
[clinton/Smoothieware.git] / makefile
dissimilarity index 99%
index fc2e985..9a10c92 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,26 +1,35 @@
-# Copyright 2011 Adam Green (http://mbed.org/users/AdamGreen/)\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-#     http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-PROJECT=main\r
-GCC4MBED_DIR=./gcc4mbed\r
-INCDIRS=\r
-LIBS_PREFIX=\r
-LIBS_SUFFIX=\r
-SRC=./src/\r
-\r
-include ./gcc4mbed/build/gcc4mbed.mk\r
-\r
-flash: \r
-       lpc21isp $(PROJECT).hex /dev/ttyUSB0 115200 14746\r
-\r
-\r
+#!/usr/bin/make
+
+DIRS = mbed src
+DIRSCLEAN = $(addsuffix .clean,$(DIRS))
+
+all:
+       @ $(MAKE) -C mbed
+       @echo Building Smoothie
+       @ $(MAKE) -C src
+
+clean: $(DIRSCLEAN)
+
+$(DIRSCLEAN): %.clean:
+       @echo Cleaning $*
+       @ $(MAKE) -C $*  clean
+
+debug-store:
+       @ $(MAKE) -C src debug-store
+
+flash:
+       @ $(MAKE) -C src flash
+
+dfu:
+       @ $(MAKE) -C src dfu
+
+upload:
+       @ $(MAKE) -C src upload
+
+debug:
+       @ $(MAKE) -C src debug
+
+console:
+       @ $(MAKE) -C src console
+
+.PHONY: all $(DIRS) $(DIRSCLEAN) debug-store flash upload debug console dfu