diff options
author | Werner Lemberg <wl@gnu.org> | 2021-05-29 00:27:40 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2021-05-29 00:27:40 +0200 |
commit | 2bfdc161fb8ff31122b830a17fdc11589832bf8e (patch) | |
tree | b4e59ea7f635bd1cdb2742caad7bd0912859edd6 /builds | |
parent | 28eee3636caa8b933aaaccf47102bd2e698f29f6 (diff) | |
download | freetype2-2bfdc161fb8ff31122b830a17fdc11589832bf8e.tar.gz |
[build] Allow overriding of `ANSIFLAGS` for GNU make build.
* builds/*: Implement it.
Diffstat (limited to 'builds')
-rw-r--r-- | builds/ansi/ansi-def.mk | 2 | ||||
-rw-r--r-- | builds/beos/beos-def.mk | 2 | ||||
-rw-r--r-- | builds/compiler/ansi-cc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/bcc-dev.mk | 2 | ||||
-rw-r--r-- | builds/compiler/bcc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/emx.mk | 2 | ||||
-rw-r--r-- | builds/compiler/gcc-dev.mk | 3 | ||||
-rw-r--r-- | builds/compiler/gcc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/intelc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/unix-lcc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/visualc.mk | 2 | ||||
-rw-r--r-- | builds/compiler/watcom.mk | 2 | ||||
-rw-r--r-- | builds/compiler/win-lcc.mk | 2 |
13 files changed, 14 insertions, 13 deletions
diff --git a/builds/ansi/ansi-def.mk b/builds/ansi/ansi-def.mk index 2e8f43fab..218d5c0d1 100644 --- a/builds/ansi/ansi-def.mk +++ b/builds/ansi/ansi-def.mk @@ -71,7 +71,7 @@ CFLAGS ?= -c # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := +ANSIFLAGS ?= # EOF diff --git a/builds/beos/beos-def.mk b/builds/beos/beos-def.mk index 25d036b46..d7d63b37c 100644 --- a/builds/beos/beos-def.mk +++ b/builds/beos/beos-def.mk @@ -73,7 +73,7 @@ CFLAGS ?= -c # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := +ANSIFLAGS ?= # EOF diff --git a/builds/compiler/ansi-cc.mk b/builds/compiler/ansi-cc.mk index fb8b6087d..e73e6fca3 100644 --- a/builds/compiler/ansi-cc.mk +++ b/builds/compiler/ansi-cc.mk @@ -68,7 +68,7 @@ CFLAGS ?= -c # # we assume the compiler is already strictly ANSI # -ANSIFLAGS := +ANSIFLAGS ?= # Library linking diff --git a/builds/compiler/bcc-dev.mk b/builds/compiler/bcc-dev.mk index 68a686123..71804529b 100644 --- a/builds/compiler/bcc-dev.mk +++ b/builds/compiler/bcc-dev.mk @@ -67,7 +67,7 @@ CFLAGS ?= -q -c -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := -A +ANSIFLAGS ?= -A # Library linking diff --git a/builds/compiler/bcc.mk b/builds/compiler/bcc.mk index 47ba0df65..321db1089 100644 --- a/builds/compiler/bcc.mk +++ b/builds/compiler/bcc.mk @@ -67,7 +67,7 @@ CFLAGS ?= -c -q -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := -A +ANSIFLAGS ?= -A # Library linking diff --git a/builds/compiler/emx.mk b/builds/compiler/emx.mk index 0e7999427..b3b6047e5 100644 --- a/builds/compiler/emx.mk +++ b/builds/compiler/emx.mk @@ -65,7 +65,7 @@ CFLAGS ?= -c -g -O6 -Wall # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := +ANSIFLAGS ?= # Library linking diff --git a/builds/compiler/gcc-dev.mk b/builds/compiler/gcc-dev.mk index 84370a5ff..f01192f7e 100644 --- a/builds/compiler/gcc-dev.mk +++ b/builds/compiler/gcc-dev.mk @@ -82,8 +82,9 @@ ifndef CFLAGS endif # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. +# You can override this on the command line. # -ANSIFLAGS := -std=c99 -pedantic +ANSIFLAGS ?= -std=c99 -pedantic # Library linking diff --git a/builds/compiler/gcc.mk b/builds/compiler/gcc.mk index 017453bf4..ede20b2fc 100644 --- a/builds/compiler/gcc.mk +++ b/builds/compiler/gcc.mk @@ -65,7 +65,7 @@ CFLAGS ?= -c -g -O3 -Wall # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := -std=c99 -pedantic +ANSIFLAGS ?= -std=c99 -pedantic # Library linking diff --git a/builds/compiler/intelc.mk b/builds/compiler/intelc.mk index 1ff8ca7ac..e5dcf90b3 100644 --- a/builds/compiler/intelc.mk +++ b/builds/compiler/intelc.mk @@ -74,7 +74,7 @@ CFLAGS ?= /nologo /c /Ox /G5 /W3 /Qwd32 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := /Qansi_alias /Za +ANSIFLAGS ?= /Qansi_alias /Za # Library linking # diff --git a/builds/compiler/unix-lcc.mk b/builds/compiler/unix-lcc.mk index fe4326ad4..40322b4be 100644 --- a/builds/compiler/unix-lcc.mk +++ b/builds/compiler/unix-lcc.mk @@ -71,7 +71,7 @@ CFLAGS ?= -c -g # # the "-A" flag simply increments verbosity about non ANSI code # -ANSIFLAGS := -A +ANSIFLAGS ?= -A # library linking diff --git a/builds/compiler/visualc.mk b/builds/compiler/visualc.mk index ccaee01ac..dc6998ad1 100644 --- a/builds/compiler/visualc.mk +++ b/builds/compiler/visualc.mk @@ -70,7 +70,7 @@ CFLAGS ?= /nologo /c /Ox /W3 /WX # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := /Za /D_CRT_SECURE_NO_DEPRECATE +ANSIFLAGS ?= /Za /D_CRT_SECURE_NO_DEPRECATE # Library linking diff --git a/builds/compiler/watcom.mk b/builds/compiler/watcom.mk index f5b071bdf..c1d1b6651 100644 --- a/builds/compiler/watcom.mk +++ b/builds/compiler/watcom.mk @@ -67,7 +67,7 @@ CFLAGS ?= -zq # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # -ANSIFLAGS := -za +ANSIFLAGS ?= -za # Library linking diff --git a/builds/compiler/win-lcc.mk b/builds/compiler/win-lcc.mk index e17afc234..27fbc3034 100644 --- a/builds/compiler/win-lcc.mk +++ b/builds/compiler/win-lcc.mk @@ -69,7 +69,7 @@ CFLAGS ?= -c -g2 -O # # LCC is pure ANSI anyway! # -ANSIFLAGS := +ANSIFLAGS ?= # library linking |