-
Notifications
You must be signed in to change notification settings - Fork 13
/
dhex.patch
40 lines (37 loc) · 1.17 KB
/
dhex.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
@@ -1,11 +1,11 @@
-CC= gcc
-LDFLAGS= -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses
-CPPFLAGS= -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses
-CFLAGS= -O3 -Wall #-std=c99
+#CC= gcc
+#LDFLAGS= -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses
+#CPPFLAGS= -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses
+#CFLAGS= -O3 -Wall #-std=c99
#CFLAGS+= -ffunction-sections -fdata-sections
#LDFLAGS+= --gc-sections
LIBS= -lncurses
-DESTDIR= /usr/local/
+DESTDIR= /app
OFILES=buffers.o \
configfile.o \
@@ -27,14 +27,12 @@
$(CC) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
install:all
- strip dhex
- cp dhex $(DESTDIR)/bin
- cp dhex.1 $(DESTDIR)/man/man1
- cp dhexrc.5 $(DESTDIR)/man/man5
- cp dhex_markers.5 $(DESTDIR)/man/man5
- cp dhex_searchlog.5 $(DESTDIR)/man/man5
-
-
+ install -Dm755 dhex -t $(DESTDIR)/bin/
+ install -Dm644 dhex.1 -t $(DESTDIR)/share/man/man1/
+ install -Dm644 -t $(DESTDIR)/share/man/man5/ \
+ dhexrc.5 \
+ dhex_markers.5 \
+ dhex_searchlog.5
.c.o:
$(CC) $< -c -I. $(CPPFLAGS) $(CFLAGS) $(OPTIONS)