smdk-dltool-0.20-build.patch 430 B

123456789101112131415161718192021
  1. respect env build settings
  2. --- a/releases/smdk-tools-v0.20/dltool/Makefile
  3. +++ b/releases/smdk-tools-v0.20/dltool/Makefile
  4. @@ -7,8 +7,13 @@
  5. .PHONY: clean
  6. -dltool: dltool.c
  7. - $(CC) -O2 -Wall -g -lusb -o smdk-usbdl dltool.c
  8. +CFLAGS ?= -O2 -g
  9. +CFLAGS += -Wall
  10. +PKG_CONFIG ?= pkg-config
  11. +CPPFLAGS += $(shell $(PKG_CONFIG) --cflags libusb)
  12. +LDLIBS = $(shell $(PKG_CONFIG) --libs libusb)
  13. +
  14. +all: dltool
  15. clean:
  16. -rm smdk-usbdl