[PATCH btbridge v3 2/4] Use builtin make rules

OpenBMC Patches patches at stwcx.xyz
Fri Oct 30 14:54:03 AEDT 2015


From: Cyril Bur <cyril.bur at au1.ibm.com>

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 7f62be2..54d9964 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: btbridged
+CPPFLAGS=$(shell pkg-config --cflags libsystemd)
+LDFLAGS=$(shell pkg-config --libs libsystemd)
 
-btbridged: btbridged.c
-	$(CC) $(CFLAGS) `pkg-config --cflags --libs libsystemd` $^ -o $@
+all: btbridged
-- 
2.6.0




More information about the openbmc mailing list