-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsc.patch
More file actions
51 lines (44 loc) · 1.6 KB
/
sc.patch
File metadata and controls
51 lines (44 loc) · 1.6 KB
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
41
42
43
44
45
46
47
48
49
50
51
diff --git a/Makefile b/Makefile
index 324014c..785568c 100644
--- a/Makefile
+++ b/Makefile
@@ -20,13 +20,13 @@ NAME=SC
# packaging this with an O/S, for example, you'll probably want to change
# this to /usr. Otherwise, /usr/local is probably more appropriate, unless
# you're replacing the vendor-supplied version.
-prefix=/usr
+prefix=${HOME}
# This is where the install step puts it.
EXDIR=${prefix}/bin
# This is where the man page goes.
-MANDIR=${prefix}/man/man1
+MANDIR=${prefix}/share/man/man1
MANEXT=1
MANMODE=644
@@ -51,8 +51,8 @@ BROKENCURSES=
USELOCALE=-DUSELOCALE
# Set DOBACKUPS if you would like a backup copy of a source file on a save
-#DOBACKUPS=
-DOBACKUPS=-DDOBACKUPS
+DOBACKUPS=
+#DOBACKUPS=-DDOBACKUPS
# Set SIGVOID if signal routines are type void.
# use: SIGVOID=-DSIGVOID for:
@@ -336,8 +336,8 @@ CC=gcc
# real effect on the reliability of the program, but may concern some
# people who don't understand them.
#CFLAGS=-DSYSV3 -O2 -Wall -pipe
-CFLAGS=-DSYSV3 -O2 -pipe -g
-LIB=-lm -lncurses
+CFLAGS=-DSYSV3 -O2 -pipe -g -w
+LIB=-lm -lncurses -ltinfo
# All of the source files
SRC=Makefile abbrev.c cmds.c color.c crypt.c eres.sed frame.c format.c gram.y \
@@ -473,7 +473,7 @@ lint: sc.h sc.c lex.c gram.c interp.c cmds.c color.c crypt.c frame.c pipe.c \
range.c help.c vi.c version.c xmalloc.c format.c vmtbl.c
lint ${LINTFLAGS} ${CFLAGS} ${SIMPLE} sc.c lex.c gram.c interp.c \
cmds.c color.c crypt.c frame.c pipe.c range.c help.c vi.c version.c \
- xmalloc.c format.c vmtbl.c -lcurses -lm
+ xmalloc.c format.c vmtbl.c -lcurses -ltinfo -lm
make lintqref
lintqref: help.c