projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:karlp/stlink
[fw/stlink]
/
gdbserver
/
Makefile
diff --git
a/gdbserver/Makefile
b/gdbserver/Makefile
index a10a0d82793ff6cbae3b6104a3473a123d79a7fb..c0b927e2094889189bd5b9a7518c4718ec93524c 100644
(file)
--- a/
gdbserver/Makefile
+++ b/
gdbserver/Makefile
@@
-1,9
+1,3
@@
-# make ... for both libusb and libsg
-#
-# make CONFIG_USE_LIBSG=0 ...
-# for just libusb
-#
-
PRG := st-util
OBJS = gdb-remote.o gdb-server.o
PRG := st-util
OBJS = gdb-remote.o gdb-server.o
@@
-11,15
+5,6
@@
CFLAGS+=-g -Wall -Werror -std=gnu99 -I../src
CFLAGS+=-DCONFIG_USE_LIBUSB=1
LDFLAGS=-L.. -lstlink -lusb-1.0
CFLAGS+=-DCONFIG_USE_LIBUSB=1
LDFLAGS=-L.. -lstlink -lusb-1.0
-ifeq ($(CONFIG_USE_LIBSG),)
-CONFIG_USE_LIBSG=1
-endif
-
-ifneq ($(CONFIG_USE_LIBSG),0)
-CFLAGS+=-DCONFIG_USE_LIBSG=1
-LDFLAGS+=-lsgutils2
-endif
-
all: $(PRG)
$(PRG): $(OBJS)
all: $(PRG)
$(PRG): $(OBJS)