e7c17f6332
o Use modern curses routines if ncurses is in use Fises PR 3225; OK pvalchev@
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.3 2003/06/16 21:37:17 millert Exp $
|
|
--- Makefile.orig Mon Nov 5 17:37:05 2001
|
|
+++ Makefile Mon Jun 16 15:31:29 2003
|
|
@@ -20,19 +20,19 @@ 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
|
|
+LOCALBASE=${LOCALBASE}
|
|
|
|
# This is where the install step puts it.
|
|
-EXDIR=${prefix}/bin
|
|
+EXDIR=${PREFIX}/bin
|
|
|
|
# This is where the man page goes.
|
|
-MANDIR=${prefix}/man/man1
|
|
+MANDIR=${PREFIX}/man/man1
|
|
MANEXT=1
|
|
MANMODE=644
|
|
|
|
# This is where the library file (tutorial) goes.
|
|
#LIBDIR=/usr/local/share/$(name) # reno
|
|
-LIBDIR=${prefix}/lib/$(name)
|
|
+LIBDIR=${PREFIX}/share/$(name)
|
|
|
|
# Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
|
|
#SIMPLE=-DSIMPLE
|
|
@@ -70,8 +70,8 @@ RINT=
|
|
|
|
# Set RE_COMP if you have the re_comp/re_exec regular expression routines
|
|
# (most BSD based systems do).
|
|
-#RE_COMP=
|
|
-RE_COMP=-DRE_COMP
|
|
+RE_COMP=
|
|
+#RE_COMP=-DRE_COMP
|
|
|
|
# Set REGCMP if you have the regcmp/regex regular expression routines
|
|
# (most System V based systems do)
|
|
@@ -149,7 +149,7 @@ RIGHTBUG=
|
|
# increase the number of terminals (mostly AT&T), SCO's does though.
|
|
# YACC=yacc
|
|
# NOTE: Do not use with bison 1.16! Get a new version....
|
|
-YACC=bison -y
|
|
+YACC=yacc
|
|
|
|
# MS-DOS needs y_tab instead of the normal y.tab
|
|
#YTAB=y_tab
|
|
@@ -299,13 +299,14 @@ LN=ln
|
|
|
|
#########################################
|
|
# Use this for Linux
|
|
-CC=gcc
|
|
+CC?=gcc
|
|
# Only use -Wall for testing, since it produces warnings that are of no
|
|
# 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
|
|
-LIB=-lm -lncurses
|
|
+#CFLAGS=-DSYSV3 -O2 -pipe
|
|
+#LIB=-lm -lncurses
|
|
+LIB=-lm -lcurses
|
|
|
|
# All of the source files
|
|
SRC=Makefile color.c cmds.c crypt.c eres.sed frame.c format.c gram.y help.c \
|