Browse Source

Make external CC and CFLAGS declaration possible

pull/73/head
Bertrand Roussel 4 years ago
parent
commit
33fbcd7e50
10 changed files with 20 additions and 20 deletions
  1. +2
    -2
      devLib/Makefile
  2. +2
    -2
      examples/Gertboard/Makefile
  3. +2
    -2
      examples/Makefile
  4. +2
    -2
      examples/PiFace/Makefile
  5. +2
    -2
      examples/PiGlow/Makefile
  6. +2
    -2
      examples/q2w/Makefile
  7. +2
    -2
      examples/scrollPhat/Makefile
  8. +2
    -2
      gpio/Makefile
  9. +2
    -2
      wiringPi/Makefile
  10. +2
    -2
      wiringPiD/Makefile

+ 2
- 2
devLib/Makefile View File

@@ -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 =




+ 2
- 2
examples/Gertboard/Makefile View File

@@ -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


+ 2
- 2
examples/Makefile View File

@@ -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


+ 2
- 2
examples/PiFace/Makefile View File

@@ -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


+ 2
- 2
examples/PiGlow/Makefile View File

@@ -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


+ 2
- 2
examples/q2w/Makefile View File

@@ -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


+ 2
- 2
examples/scrollPhat/Makefile View File

@@ -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


+ 2
- 2
gpio/Makefile View File

@@ -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


+ 2
- 2
wiringPi/Makefile View File

@@ -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


+ 2
- 2
wiringPiD/Makefile View File

@@ -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


Loading…
Cancel
Save