summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 0000000..ae33902
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,16 @@
+CC = cc
+CFLAGS = -std=c99 -Wall -Wextra -pedantic -Os
+LDFLAGS =
+PREFIX ?= /usr/local
+
+all: exofetch
+
+exofetch: exofetch.c
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+
+clean:
+ rm -f exofetch
+
+install: exofetch
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f exofetch $(DESTDIR)$(PREFIX)/bin