From bddb45d1e7962d538fd67c58102cbb15b87389ec Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Fri, 22 Dec 2017 20:24:12 -0500 Subject: Bring bucts source files into libreboot tree Considering bucts is no longer maintained by Peter Stuge--its original author--and it being integral to Librebooting the X60/T60, it seems best for bucts to be merged into the main Libreboot repository. --- projects/bucts/sources/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 projects/bucts/sources/Makefile (limited to 'projects/bucts/sources/Makefile') diff --git a/projects/bucts/sources/Makefile b/projects/bucts/sources/Makefile new file mode 100644 index 00000000..b5f43d5f --- /dev/null +++ b/projects/bucts/sources/Makefile @@ -0,0 +1,20 @@ +CC:=gcc +OBJ:=bucts.o +VERSION:=withoutgit + +ifeq ($(shell uname), FreeBSD) + CFLAGS = -I/usr/local/include + LDFLAGS = -L/usr/local/lib +endif + +all: bucts + +bucts: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci + +%.o: %.c + $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $< + +.PHONY: clean +clean: + rm -f bucts $(OBJ) -- cgit v1.2.3-70-g09d2