Преглед на файлове

Build system: Add a formulaic setting of Q from V for debugging

We want to be able to disable the many @'s in the Makefiles so
that we can see what they are doing, when things go wrong.  It is
conventional to arrange for setting V=1 to have this effect.

Here we supply a formulaic stanza for either setting Q?=@ or
doing nothing.  (There is sadly no standard place which is
included in all the Makefiles so this is probably best).

In this patch we do not introduce any users of Q yet.  This is
because the next patch, which introduces all the users of Q, can
be generated entirely automatically.  (This is also convenient in
case something needs to be rebased across it.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pull/62/head
Ian Jackson преди 9 години
родител
ревизия
cf6f38107e
променени са 9 файла, в които са добавени 32 реда и са изтрити 0 реда
  1. +4
    -0
      devLib/Makefile
  2. +4
    -0
      examples/Gertboard/Makefile
  3. +3
    -0
      examples/Makefile
  4. +3
    -0
      examples/PiFace/Makefile
  5. +3
    -0
      examples/PiGlow/Makefile
  6. +3
    -0
      examples/q2w/Makefile
  7. +4
    -0
      gpio/Makefile
  8. +4
    -0
      pins/Makefile
  9. +4
    -0
      wiringPi/Makefile

+ 4
- 0
devLib/Makefile Целия файл

@@ -25,6 +25,10 @@ VERSION=$(shell cat ../VERSION)
DESTDIR=/usr
PREFIX=/local

ifneq ($V,1)
Q ?= @
endif

STATIC=libwiringPiDev.a
DYNAMIC=libwiringPiDev.so.$(VERSION)



+ 4
- 0
examples/Gertboard/Makefile Целия файл

@@ -5,6 +5,10 @@
# Copyright (c) 2013 Gordon Henderson
#################################################################################

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O3
CC = gcc


+ 3
- 0
examples/Makefile Целия файл

@@ -22,6 +22,9 @@
# along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
#################################################################################

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O3


+ 3
- 0
examples/PiFace/Makefile Целия файл

@@ -22,6 +22,9 @@
# along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
#################################################################################

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O3


+ 3
- 0
examples/PiGlow/Makefile Целия файл

@@ -22,6 +22,9 @@
# along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
#################################################################################

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O3


+ 3
- 0
examples/q2w/Makefile Целия файл

@@ -22,6 +22,9 @@
# along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
#################################################################################

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O3


+ 4
- 0
gpio/Makefile Целия файл

@@ -26,6 +26,10 @@
DESTDIR=/usr
PREFIX=/local

ifneq ($V,1)
Q ?= @
endif

#DEBUG = -g -O0
DEBUG = -O2
CC = gcc


+ 4
- 0
pins/Makefile Целия файл

@@ -1,6 +1,10 @@

SRC = pins.tex

ifneq ($V,1)
Q ?= @
endif


all: ${SRC}
@echo Generating DVI


+ 4
- 0
wiringPi/Makefile Целия файл

@@ -25,6 +25,10 @@ VERSION=$(shell cat ../VERSION)
DESTDIR=/usr
PREFIX=/local

ifneq ($V,1)
Q ?= @
endif

STATIC=libwiringPi.a
DYNAMIC=libwiringPi.so.$(VERSION)



Зареждане…
Отказ
Запис