Only call strtoul when there is an argument that strtoul can work on
[fw/stlink] / flash / Makefile
index 9fa67435c4b163afed58e5e11c2a0dce4d9bb86d..412c366e5a6cd736ce4d65194a31108a7c95d89d 100644 (file)
@@ -1,12 +1,4 @@
-# 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
@@ -14,15 +6,6 @@ CFLAGS+=-I../src
 
 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
-
 SRCS=main.c
 OBJS=$(SRCS:.c=.o)