aboutsummaryrefslogtreecommitdiff
path: root/projects/bucts/sources/Makefile
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-12-22 20:24:12 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2017-12-22 22:01:05 -0500
commitbddb45d1e7962d538fd67c58102cbb15b87389ec (patch)
treea569a1f5f0f81d21accbf6a3db4de3c85919d2a8 /projects/bucts/sources/Makefile
parentb3b6e362ec943b02e19fe5932e1ad90d8ba66fc8 (diff)
downloadlibrebootfr-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/Makefile20
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)