mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 22:53:31 +02:00
Closes: https://bugs.gentoo.org/742206 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
20 lines
364 B
Diff
20 lines
364 B
Diff
respect env build settings
|
|
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -7,8 +7,13 @@
|
|
|
|
.PHONY: clean
|
|
|
|
-dltool: dltool.c
|
|
- $(CC) -O2 -Wall -g -lusb -o smdk-usbdl dltool.c
|
|
+CFLAGS ?= -O2 -g
|
|
+CFLAGS += -Wall
|
|
+PKG_CONFIG ?= pkg-config
|
|
+CPPFLAGS += $(shell $(PKG_CONFIG) --cflags libusb)
|
|
+LDLIBS = $(shell $(PKG_CONFIG) --libs libusb)
|
|
+
|
|
+all: dltool
|
|
|
|
clean:
|
|
-rm smdk-usbdl
|