aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d80a3c0..e70f82f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
-PREFIX = /usr/local
+BINDIR = /usr/local/bin
+MANDIR = /usr/local/man
-LDFLAGS = -lreadline -ltermcap
+HEADERS = /usr/pkg/include
+LIBS = /usr/pkg/lib
+
+CFLAGS := -I$(HEADERS)
+LDFLAGS := -L$(LIBS) -Wl,-R$(LIBS) -lreadline -ltermcap
repl: repl.c
install: repl
- cp repl ${PREFIX}/bin/repl
- cp repl.1 ${PREFIX}/man/man1/repl.1
+ install repl ${BINDIR}/repl
+ install -m 644 repl.1 ${MANDIR}/man1/repl.1
uninstall:
- rm ${PREFIX}/bin/repl
- rm ${PREFIX}/man/man1/repl.1
+ rm ${BINDIR}/repl
+ rm ${MANDIR}/man1/repl.1