Added rules for subdirectories
authorNed Konz <ned@productcreationstudio.com>
Thu, 20 Oct 2011 01:39:57 +0000 (18:39 -0700)
committerNed Konz <ned@productcreationstudio.com>
Thu, 20 Oct 2011 01:39:57 +0000 (18:39 -0700)
Makefile

index 4c3b44b8321bf12f1972b0a94895e0e980be4775..a6545e83b64b54141b26ba3ea5ce126118e2a570 100644 (file)
--- 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