X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gdbserver%2FMakefile;h=c81ea52b84fdcfaa3cb8ebaefca17b06c03b0d71;hb=5eda4566d617fedd2a9d3020ddae06b394d08a5f;hp=85b0ac1d67b6f87d77bb54b4485558dc1398ab8d;hpb=c85c172c6313fbc646b1ad96189a0f03121a2370;p=fw%2Fstlink diff --git a/gdbserver/Makefile b/gdbserver/Makefile index 85b0ac1..c81ea52 100644 --- a/gdbserver/Makefile +++ b/gdbserver/Makefile @@ -1,25 +1,9 @@ -# make ... for both libusb and libsg -# -# make CONFIG_USE_LIBSG=0 ... -# for just libusb -# - PRG := st-util OBJS = gdb-remote.o gdb-server.o CFLAGS+=-g -Wall -Werror -std=gnu99 -I../src -CFLAGS+=-DCONFIG_USE_LIBUSB=1 -CFLAGS+=-DCONFIG_USE_LIBSG=$(CONFIG_USE_LIBSG) LDFLAGS=-L.. -lstlink -lusb-1.0 -ifeq ($(CONFIG_USE_LIBSG),) -CONFIG_USE_LIBSG=1 -endif - -ifneq ($(CONFIG_USE_LIBSG),0) -LDFLAGS+=-lsgutils2 -endif - all: $(PRG) $(PRG): $(OBJS)