mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08: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>
21 lines
364 B
Diff
21 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
|