Only call strtoul when there is an argument that strtoul can work on
[fw/stlink] / gdbserver / Makefile
index e9d2774f35b7f6826f0fd4e4c5be35113820ee8f..c81ea52b84fdcfaa3cb8ebaefca17b06c03b0d71 100644 (file)
@@ -1,13 +1,8 @@
-
 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)