summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author0xhenrique <[email protected]>2026-05-04 22:52:00 +0100
committer0xhenrique <[email protected]>2026-05-04 22:52:00 +0100
commit0c286f5b98c5845f2338082115cb48fd90ca01d5 (patch)
treeab7756dbe56233659f237657ce57e817a3a6e60f /Makefile
parent20cd046137f465acaf9a5dafeebcd8a6d0c92cb8 (diff)
add filesHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a0441c5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+PROG = wmgpumon
+CC = gcc
+CFLAGS = -Wall -O2 $(shell pkg-config --cflags xft)
+LIBS = $(shell pkg-config --libs xft) -lX11 -lXext
+
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+
+$(PROG): wmgpumon.c
+ $(CC) $(CFLAGS) wmgpumon.c -o $(PROG) $(LIBS)
+
+install: $(PROG)
+ install -m 755 $(PROG) $(BINDIR)
+
+uninstall:
+ rm -f $(BINDIR)/$(PROG)
+
+clean:
+ rm -f $(PROG)
+
+.PHONY: install uninstall clean