1 ## SPDX-License-Identifier: GPL-2.0-only
5 VERSION
:=$(shell git describe
)
7 CFLAGS
=-O2
-Wall
-Wextra
-Wshadow
${WERROR}
9 ifeq ($(shell uname
), FreeBSD
)
10 CFLAGS
+= -I
/usr
/local
/include
11 LDFLAGS
+= -L
/usr
/local
/lib
17 $(CC
) -o
$@
$(OBJ
) $(LDFLAGS
) -lpci
20 $(CC
) $(CFLAGS
) -DVERSION
='"$(VERSION)"' -c
$<
28 @echo
"${TARGET}: tool to manipulate the BUC.TS bit on Intel targets."
29 @echo
"Targets: all, clean, distclean, help"
30 @echo
"To disable warnings as errors, run make as:"
31 @echo
" make all WERROR=\"\""
33 .PHONY
: all clean distclean help