chiark / gitweb /
Debian build: ./newVersion updates debian/changelog too.
[wiringPi.git] / devLib / Makefile
index 38ab9d9cd164fd24bae91aeaa95e954cf4fc3509..4f853a4710e9df8a1efe258699842052cdeb9f02 100644 (file)
@@ -37,7 +37,7 @@ DYNAMIC=libwiringPiDev.so.$(VERSION)
 #DEBUG = -g -O0
 DEBUG  = -O2
 CC     = gcc
-INCLUDE        = -I.
+INCLUDE        = -I. -I$(DESTDIR)$(PREFIX)/include
 DEFS   = -D_GNU_SOURCE
 CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC
 
@@ -66,7 +66,7 @@ $(STATIC):    $(OBJ)
 
 $(DYNAMIC):    $(OBJ)
        $Q echo "[Link (Dynamic)]"
-       $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
+       $Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
 
 .c.o:
        $Q echo [Compile] $<