diff options
| author | 0xhenrique <[email protected]> | 2026-05-04 22:52:00 +0100 |
|---|---|---|
| committer | 0xhenrique <[email protected]> | 2026-05-04 22:52:00 +0100 |
| commit | 0c286f5b98c5845f2338082115cb48fd90ca01d5 (patch) | |
| tree | ab7756dbe56233659f237657ce57e817a3a6e60f /Makefile | |
| parent | 20cd046137f465acaf9a5dafeebcd8a6d0c92cb8 (diff) | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
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 |
