diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-15 21:30:16 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-15 21:30:16 +0000 |
| commit | 8636ca41f48415961c5bbec8edde044ce9d451b1 (patch) | |
| tree | a00eaa6d429a01c7a83414eb4a095369f019d162 /util | |
| parent | 1912c82f9725507ed8a31e3ec1e51e0ad3e4b9c2 (diff) | |
util/nvmutil: more portable Makefile
-Werror removed, for older compilers
actual warnings still there
-std is configurable now
e.g.
make CSTD=-c90
make CSTD=-c99
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index 719e1c1e..c89b7228 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -3,7 +3,11 @@ # Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> CC?=cc -CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c90 +CSTD?=-std=c90 +WERROR?= +CWARN?=-Wall -Wextra -pedantic +COPT?=-Os +CFLAGS?=$(COPT) $(CWARN) $(CSTD) LDFLAGS?= DESTDIR?= PREFIX?=/usr/local |
