From 7dd28a3fa96564bb4135a1c4dc936e5824c4c2e7 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Tue, 15 Jan 2013 01:29:22 +0100 Subject: generic_gpio: make it really generic use libgpio for gpio access use config file for selecting and configuring gpios Signed-off-by: Manuel Traut --- io/bin/generic_gpio/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'io/bin/generic_gpio/Makefile') diff --git a/io/bin/generic_gpio/Makefile b/io/bin/generic_gpio/Makefile index 0528035..4fc8bd2 100644 --- a/io/bin/generic_gpio/Makefile +++ b/io/bin/generic_gpio/Makefile @@ -13,9 +13,12 @@ LDFLAGS += -L$(DISTRIO_COMMON) -ldistrio_common \ -L$(DISTRIO_IO) -ldistrio_io \ -L$(DISTRIO_MANAGER) -ldistrio_manager \ -lACE -lTAO -lTAO_AnyTypeCode -lTAO_CosNaming -lTAO_PortableServer \ + `pkg-config --libs libgpio` \ -L. -lini \ -lrt -CFLAGS += -fPIC -I$(DISTRIO_COMMON) -I$(DISTRIO_IO) -I$(DISTRIO_MANAGER) +CFLAGS += -fPIC -I$(DISTRIO_COMMON) -I$(DISTRIO_IO) -I$(DISTRIO_MANAGER) \ + `pkg-config --cflags libgpio` + CXXFLAGS += $(CFLAGS) DESTDIR := /usr -- cgit v1.2.3