76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2002/08/06 00:45:17 pvalchev Exp $
|
|
--- Makefile.orig Mon Nov 5 17:37:05 2001
|
|
+++ Makefile Mon Aug 5 18:37:20 2002
|
|
@@ -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
|
|
@@ -227,9 +227,9 @@ LN=ln
|
|
|
|
#########################################
|
|
# Use this for BSD 4.3
|
|
-#CFLAGS= -O -DBSD43 #-O or -g
|
|
+CFLAGS += -DBSD43 #-O or -g
|
|
#LDFLAGS= # -lg might help if -g used in CFLAGS
|
|
-#LIB=-lm -lcurses -ltermcap
|
|
+LIB=-lm -lcurses -ltermcap
|
|
|
|
#########################################
|
|
# Use this for SunOS 4.X if you have the System V package installed.
|
|
@@ -299,13 +299,12 @@ 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
|
|
+#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 \
|