From: Ned Konz Date: Thu, 20 Oct 2011 01:39:57 +0000 (-0700) Subject: Added rules for subdirectories X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=93051281c7706bd77dfd9736564d27f880507b98;p=fw%2Fstlink Added rules for subdirectories --- diff --git a/Makefile b/Makefile index 4c3b44b..a6545e8 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ LDFLAGS=-lstlink -lusb-1.0 -lsgutils2 -L. LIBRARY=libstlink.a -all: $(LIBRARY) test_usb test_sg +all: $(LIBRARY) flash gdbserver test_usb test_sg $(LIBRARY): $(OBJS_LIB) @echo "objs are $(OBJS_LIB)" @@ -42,5 +42,15 @@ clean: rm -rf $(LIBRARY) rm -rf test_usb* rm -rf test_sg* + +distclean: clean + $(MAKE) -C flash clean + $(MAKE) -C gdbserver clean -.PHONY: clean all +flash: + $(MAKE) -C flash + +gdbserver: + $(MAKE) -C gdbserver + +.PHONY: clean all flash gdbserver