From 93051281c7706bd77dfd9736564d27f880507b98 Mon Sep 17 00:00:00 2001 From: Ned Konz Date: Wed, 19 Oct 2011 18:39:57 -0700 Subject: [PATCH] Added rules for subdirectories --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 -- 2.47.2