diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..012f577 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +PREFIX ?= /usr/local +BINDIR ?= /bin + +ifeq ($(DEBUG),1) +CFLAGS = -Og -g +else +CFLAGS = -O3 +endif + +all: procdump + +procdump: procdump.c + gcc -o $@ $< $(CFLAGS) + +clean: + rm -f procdump + +install: + install -m755 procdump -t "$(DESTDIR)$(PREFIX)$(BINDIR)" + +uninstall: + rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/procdump" + +.PHONY: all install uninstall |
