mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
nope. put -Werror in the makefile
not compiling without it is a bug don't let the default exclude it Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -4,21 +4,22 @@
|
||||
|
||||
CC?=cc
|
||||
CSTD?=-std=c90
|
||||
WERROR?=
|
||||
WERROR?=-Werror
|
||||
CWARN?=-Wall -Wextra -pedantic
|
||||
COPT?=-Os
|
||||
CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD)
|
||||
CFLAGS?=$(COPT) $(CWARN) $(CSTD)
|
||||
LDFLAGS?=
|
||||
DESTDIR?=
|
||||
PREFIX?=/usr/local
|
||||
INSTALL?=install
|
||||
LDIR?=-I.
|
||||
|
||||
PROG=nvmutil
|
||||
|
||||
all: $(PROG)
|
||||
|
||||
$(PROG): nvmutil.c
|
||||
$(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG)
|
||||
$(CC) $(LDIR) $(WERROR) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG)
|
||||
|
||||
install: $(PROG)
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
Reference in New Issue
Block a user