diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-12-22 20:24:12 -0500 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-12-22 22:01:05 -0500 |
commit | bddb45d1e7962d538fd67c58102cbb15b87389ec (patch) | |
tree | a569a1f5f0f81d21accbf6a3db4de3c85919d2a8 /projects/bucts/sources/Makefile | |
parent | b3b6e362ec943b02e19fe5932e1ad90d8ba66fc8 (diff) | |
download | librebootfr-bddb45d1e7962d538fd67c58102cbb15b87389ec.tar.gz librebootfr-bddb45d1e7962d538fd67c58102cbb15b87389ec.zip |
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.
Diffstat (limited to 'projects/bucts/sources/Makefile')
-rw-r--r-- | projects/bucts/sources/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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) |