瀏覽代碼
Merge pull request #73 from CoRfr/master
Make external CC declaration possible
pull/85/head
Philip Howard
4 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
10 個檔案被更改,包括
20 行新增 和
20 行删除
-
devLib/Makefile
-
examples/Gertboard/Makefile
-
examples/Makefile
-
examples/PiFace/Makefile
-
examples/PiGlow/Makefile
-
examples/q2w/Makefile
-
examples/scrollPhat/Makefile
-
gpio/Makefile
-
wiringPi/Makefile
-
wiringPiD/Makefile
|
|
@@ -36,10 +36,10 @@ DYNAMIC=libwiringPiDev.so.$(VERSION) |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O2 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I. |
|
|
|
DEFS = -D_GNU_SOURCE |
|
|
|
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC |
|
|
|
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LIBS = |
|
|
|
|
|
|
|
|
|
@@ -11,9 +11,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm |
|
|
|
|
|
@@ -28,9 +28,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt |
|
|
|
|
|
@@ -28,9 +28,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm |
|
|
|
|
|
@@ -28,9 +28,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm |
|
|
|
|
|
@@ -28,9 +28,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm |
|
|
|
|
|
@@ -28,9 +28,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O3 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I/usr/local/include |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L/usr/local/lib |
|
|
|
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm |
|
|
|
|
|
@@ -32,9 +32,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O2 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I$(DESTDIR)$(PREFIX)/include |
|
|
|
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib |
|
|
|
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt |
|
|
|
|
|
@@ -36,10 +36,10 @@ DYNAMIC=libwiringPi.so.$(VERSION) |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O2 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I. |
|
|
|
DEFS = -D_GNU_SOURCE |
|
|
|
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC |
|
|
|
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS) |
|
|
|
#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC |
|
|
|
|
|
|
|
LIBS = -lm -lpthread -lrt -lcrypt |
|
|
|
|
|
@@ -31,9 +31,9 @@ endif |
|
|
|
|
|
|
|
#DEBUG = -g -O0 |
|
|
|
DEBUG = -O2 |
|
|
|
CC = gcc |
|
|
|
CC ?= gcc |
|
|
|
INCLUDE = -I$(DESTDIR)$(PREFIX)/include |
|
|
|
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe |
|
|
|
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) |
|
|
|
|
|
|
|
LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib |
|
|
|
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt |
|
|
|