1 --- wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd.orig/gpio/Makefile 2015-02-11 09:58:24.000000000 +0100
2 +++ wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd/gpio/Makefile 2015-02-11 10:18:57.776739248 +0100
3 @@ -28,11 +28,11 @@ PREFIX=/local
9 INCLUDE = -I$(DESTDIR)$(PREFIX)/include
10 -CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
11 +CFLAGS ?= -Wall $(INCLUDE) -Winline
13 -LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib
14 +LDFLAGS = -L../wiringPi -L../devLib
15 LIBS = -lwiringPi -lwiringPiDev -lpthread -lm
17 # May not need to alter anything below this line
18 @@ -49,11 +49,11 @@ version.h: ../VERSION
22 - @$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
23 + $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
27 - @$(CC) -c $(CFLAGS) $< -o $@
28 + $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@