Allow to write to sram from the command line
[fw/stlink] / gdbserver / Makefile
index e73103dfbb58c67fb0ea4f696e32c92fd9d5c00a..8cca5726d25abc341c23f786804b8fc0b36a3547 100644 (file)
@@ -2,12 +2,11 @@ PRG := st-util
 OBJS = gdb-remote.o gdb-server.o
 
 CFLAGS+=-g -Wall -Werror -std=gnu99 -I../src
-CFLAGS+=-DCONFIG_USE_LIBUSB=1
-LDFLAGS=-lusb-1.0 -L.. -lstlink 
+LDFLAGS=-L.. -lstlink -lusb-1.0
 
 all: $(PRG)
 
-$(PRG): $(OBJS)
+$(PRG): $(OBJS) ../libstlink.a
        $(CC) -o $@  $^ $(LDFLAGS)
 
 clean: