Make external CC declaration possiblepull/85/head
@@ -36,10 +36,10 @@ DYNAMIC=libwiringPiDev.so.$(VERSION) | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O2 | DEBUG = -O2 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I. | INCLUDE = -I. | ||||
DEFS = -D_GNU_SOURCE | 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 = | LIBS = | ||||
@@ -11,9 +11,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | ||||
@@ -28,9 +28,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt | ||||
@@ -28,9 +28,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | ||||
@@ -28,9 +28,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | ||||
@@ -28,9 +28,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | ||||
@@ -28,9 +28,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O3 | DEBUG = -O3 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I/usr/local/include | INCLUDE = -I/usr/local/include | ||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |||||
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS) | |||||
LDFLAGS = -L/usr/local/lib | LDFLAGS = -L/usr/local/lib | ||||
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | ||||
@@ -32,9 +32,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O2 | DEBUG = -O2 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I$(DESTDIR)$(PREFIX)/include | 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 | LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib | ||||
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt | LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt | ||||
@@ -36,10 +36,10 @@ DYNAMIC=libwiringPi.so.$(VERSION) | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O2 | DEBUG = -O2 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I. | INCLUDE = -I. | ||||
DEFS = -D_GNU_SOURCE | 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 | #CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC | ||||
LIBS = -lm -lpthread -lrt -lcrypt | LIBS = -lm -lpthread -lrt -lcrypt | ||||
@@ -31,9 +31,9 @@ endif | |||||
#DEBUG = -g -O0 | #DEBUG = -g -O0 | ||||
DEBUG = -O2 | DEBUG = -O2 | ||||
CC = gcc | |||||
CC ?= gcc | |||||
INCLUDE = -I$(DESTDIR)$(PREFIX)/include | 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 | LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib | ||||
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt | LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt | ||||