X-Git-Url: https://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/0144b8698647ff8d3fe8ef4ec7edf7669bbb5525..26044858c076705223a2e5c523112853562e814e:/makefile diff --git a/makefile b/makefile dissimilarity index 98% index 836a4454..9a10c929 100644 --- a/makefile +++ b/makefile @@ -1,42 +1,35 @@ -# Copyright 2011 Adam Green (http://mbed.org/users/AdamGreen/) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -PROJECT=main -GCC4MBED_DIR=./gcc4mbed -INCDIRS= -LIBS_PREFIX= -LIBS_SUFFIX= -SRC=./src -#GCC4MBED_TYPE=Release -GCC4MBED_TYPE=Checked -#GCC4MBED_TYPE=Debug -#MRI_UART=MRI_UART_MBED_P13_P14 MRI_UART_BAUD=115200 -MRI_UART=MRI_UART_MBED_USB MRI_UART_SHARE -#MRI_UART=MRI_UART_MBED_USB -MRI_BREAK_ON_INIT=0 -MRI_SEMIHOST_STDIO=0 - -include ./gcc4mbed/build/gcc4mbed.mk - -flash: $(PROJECT).hex - lpc21isp $< /dev/ttyACM0 115200 14746 - -upload: $(PROJECT).bin - dfu-util -d 1d50:6015 -D $< - -debug: $(PROJECT).elf - arm-none-eabi-gdb $< -ex "set target-charset ASCII" -ex "set remotelogfile mri.log" -ex "target remote /dev/arduino_A900K10V" - -console: - stty raw ignbrk -echo 2000000 < /dev/arduino_A900K10V - ( cat <&3 & cat >&3 ; kill %% ) 3<>/dev/arduino_A900K10V +#!/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