X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=6bf02323d731c9b8d0e360c8b34bcfe812a40897;hb=16756fbe053f3e5efaf2973aebabeec201926f53;hp=646dde12df5e84ac4799af48c378d4b8dabda8ed;hpb=9ff594a6a76ec29b3f979c2b143b9816a6505c75;p=fw%2Fstlink diff --git a/Makefile b/Makefile index 646dde1..6bf0232 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ VPATH=src SOURCES_LIB=stlink-common.c stlink-usb.c stlink-sg.c uglylogging.c OBJS_LIB=$(SOURCES_LIB:.c=.o) TEST_PROGRAMS=test_usb test_sg -LDFLAGS=-lusb-1.0 -L. -lstlink +LDFLAGS=-L. -lstlink -lusb-1.0 CFLAGS+=-g CFLAGS+=-DDEBUG=1 @@ -42,8 +42,6 @@ clean: rm -rf $(LIBRARY) rm -rf test_usb* rm -rf test_sg* - -distclean: clean $(MAKE) -C flash clean $(MAKE) -C gdbserver clean @@ -51,6 +49,6 @@ flash: $(MAKE) -C flash gdbserver: - $(MAKE) -C gdbserver + $(MAKE) -C gdbserver CONFIG_USE_LIBSG="$(CONFIG_USE_LIBSG)" .PHONY: clean all flash gdbserver