-
Notifications
You must be signed in to change notification settings - Fork 13
/
hexer.patch
40 lines (36 loc) · 1.04 KB
/
hexer.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,9 @@
# -- Where? --
# The following lines determine where the binaries and manual pages for
# hexer are going to live.
-PREFIX ?= /usr/local
+PREFIX ?= /app
BINDIR ?= $(PREFIX)/bin
-MANDIR ?= $(PREFIX)/man/man1
+MANDIR ?= $(PREFIX)/share/man/man1
# -- Which terminal library? --
# (It's probably save to leave the following lines unchanged.)
@@ -19,20 +19,20 @@
#LTERMCAP ?= -ltermcap
#
# ...or this one if you want to use curses.
-LTERMCAP ?= -lcurses
+LTERMCAP = -lncurses
CPPFLAGS_STD ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 \
-D_FILE_OFFSET_BITS=64
# If you want to add some system specific defines, it's probably more
# appropriate to put them into `config.h'.
-CPPFLAGS += $(CPPFLAGS_STD) -DHEXER_VERSION=\"1.0.6\"
+CPPFLAGS += -DHEXER_VERSION=\"1.0.6\"
# -- Which compiler? --
-CC ?= cc
+#CC ?= cc
CC_FOR_BUILD ?= $(CC)
-CFLAGS ?= -O
-LDFLAGS ?=
+#CFLAGS ?= -O
+#LDFLAGS ?=
LDLIBS = $(LTERMCAP) -lm
#
# Uncomment the following lines if you want to use the GNU compiler.