summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 19:11:52 -0500
committerauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 19:11:52 -0500
commit9717eef7ca42d4c912aa082f6e05dd6a3f0beac6 (patch)
treef43e56f695a77d08c47a12a30840f342db61b295 /tools/Makefile
parentb59b8b8e5d16af7f0daccb280a4991e3fe428e41 (diff)
Add exofetch system info tool
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