soc/intel/xeon_sp: Fix VTD address
[coreboot.git] / util / bucts / Makefile
blobd32258d1ec660b20bf741b2536502d9572eb7046
1 ## SPDX-License-Identifier: GPL-2.0-only
2 CC:=gcc
3 OBJ:=bucts.o
4 TARGET=bucts
5 VERSION:=$(shell git describe)
6 WERROR=-Werror
7 CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}
9 ifeq ($(shell uname), FreeBSD)
10 CFLAGS += -I/usr/local/include
11 LDFLAGS += -L/usr/local/lib
12 endif
14 all: $(TARGET)
16 $(TARGET): $(OBJ)
17 $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci
19 %.o: %.c
20 $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $<
22 clean:
23 rm -f bucts $(OBJ)
25 distclean: clean
27 help:
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