X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=flash%2FMakefile;h=412c366e5a6cd736ce4d65194a31108a7c95d89d;hb=2edd0530a6d3dfc428bedc3d9628093775673389;hp=8a30b4113a6bcebf88951810e7d83129e45f4f7d;hpb=9bc72d4519e63fb1cf657a6c93008eaa8989fd01;p=fw%2Fstlink diff --git a/flash/Makefile b/flash/Makefile index 8a30b41..412c366 100644 --- a/flash/Makefile +++ b/flash/Makefile @@ -1,27 +1,10 @@ -# make ... for both libusb and libsg -# -# make CONFIG_USE_LIBSG=0 ... -# for just libusb -# -CC=gcc - CFLAGS+=-g -CFLAGS+=-DCONFIG_USE_LIBUSB=1 CFLAGS+=-DDEBUG CFLAGS+=-std=gnu99 CFLAGS+=-Wall -Wextra CFLAGS+=-I../src -LDFLAGS=-lusb-1.0 -L.. -lstlink - -ifeq ($(CONFIG_USE_LIBSG),) -CONFIG_USE_LIBSG=1 -endif - -ifneq ($(CONFIG_USE_LIBSG),0) -CFLAGS+=-DCONFIG_USE_LIBSG=1 -LDFLAGS+=-lsgutils2 -endif +LDFLAGS=-L.. -lstlink -lusb-1.0 SRCS=main.c OBJS=$(SRCS:.c=.o)