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