Makefile.inc: Remove workaround ACPI warnings
[coreboot.git] / util / bucts / Makefile
blob98f731449e9ce12d04bccad57254af393a25d76a
1 CC:=gcc
2 OBJ:=bucts.o
3 TARGET=bucts
4 VERSION:=$(shell git describe)
5 WERROR=-Werror
6 CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}
8 ifeq ($(shell uname), FreeBSD)
9 CFLAGS += -I/usr/local/include
10 LDFLAGS += -L/usr/local/lib
11 endif
13 all: $(TARGET)
15 $(TARGET): $(OBJ)
16 $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci
18 %.o: %.c
19 $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $<
21 clean:
22 rm -f bucts $(OBJ)
24 distclean: clean
26 help:
27 @echo "${TARGET}: tool to manipulate the BUC.TS bit on Intel targets."
28 @echo "Targets: all, clean, distclean, help"
29 @echo "To disable warnings as errors, run make as:"
30 @echo " make all WERROR=\"\""
32 .PHONY: all clean distclean help