blob: 8fa24bcc1ca7e8bef8411970f65b47881a1feac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
fix upstream Makefile
--- wiringPi-0.1.orig/devLib/Makefile 2014-12-05 14:48:57.000000000 +0100
+++ wiringPi-0.1/devLib/Makefile 2014-12-05 15:35:35.470864970 +0100
@@ -32,9 +32,9 @@ DYNAMIC=libwiringPiDev.so.$(VERSION)
#DEBUG = -g -O0
DEBUG = -O2
-CC = gcc
+CC ?= gcc
INCLUDE = -I.
-CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC
+CFLAGS ?= -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC
LIBS =
@@ -59,11 +59,11 @@ $(STATIC): $(OBJ)
$(DYNAMIC): $(OBJ)
@echo "[Link (Dynamic)]"
- @$(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
+ $(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
.c.o:
@echo [Compile] $<
- @$(CC) -c $(CFLAGS) $< -o $@
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
.PHONY: clean
clean:
|