aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bb08f4c..5d32d20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
CC=gcc
CFLAGS ?= -Wall -g -I./include
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+
mcping: mcping.c mctypes.o mcnetwork.o
$(CC) $(CFLAGS) $^ -o $@
@@ -17,4 +22,4 @@ clean:
rm -f *.o *~
install: mcping
- cp $^ $(PREFIX)/bin
+ install -D -m 0755 -t $(DESTDIR)$(BINDIR) $^