X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gdbserver%2FMakefile;h=bd5c73dbc9107f0be46c32533a604001d4d29362;hb=refs%2Fheads%2Fdebian;hp=e9d2774f35b7f6826f0fd4e4c5be35113820ee8f;hpb=8f4e7c64dc798e6c5471cb6844f08f5b35f1e4bf;p=fw%2Fstlink diff --git a/gdbserver/Makefile b/gdbserver/Makefile index e9d2774..bd5c73d 100644 --- a/gdbserver/Makefile +++ b/gdbserver/Makefile @@ -1,17 +1,16 @@ - 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 +# libusb location +LDFLAGS+=`pkg-config --libs libusb-1.0` +CFLAGS+=`pkg-config --cflags libusb-1.0` all: $(PRG) -$(PRG): $(OBJS) +$(PRG): $(OBJS) ../libstlink.a $(CC) -o $@ $^ $(LDFLAGS) clean: