summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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