openbsd-ports/textproc/spiff/patches/patch-Makefile

64 lines
2.2 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile,v 1.2 2011/07/03 22:55:26 naddy Exp $
2001-03-26 03:51:11 -05:00
--- Makefile.orig Mon May 2 00:51:17 1994
+++ Makefile Fri Jun 24 18:08:15 2011
2005-09-05 09:25:04 -04:00
@@ -18,21 +18,21 @@ INSDIR=/usr/local/bin
1998-09-23 19:34:01 -04:00
# choose a) b) or c)
#
# a) for BSD derivitives, enable the following line
-#OSFLAG=
+OSFLAG=
# b) for XENIX systems, enable the following line
#OSFLAG=-DXENIX
# b) for other A.T.&T. UNIX derivitives, enable the following line
-OSFLAG=-DATT
+#OSFLAG=-DATT
#
# 2) SELECTION OF TERMINAL CONTROL LIBRARY
# choose either of a) b) or c)
#
# a) if you use termcap, enable the following lines
-#TFLAG=-DM_TERMCAP
-#TLIB=termcap
+TFLAG=-DM_TERMCAP
+TLIB=ncurses
# b) if you are using terminfo on a XENIX machine, enable the following lines
#TFLAG=-DM_TERMINFO
@@ -75,14 +75,15 @@ OBJ= spiff.o output.o compare.o float.o strings.o exac
1998-09-23 19:34:01 -04:00
CFILES= spiff.c output.c compare.c float.c strings.c exact.c miller.c parse.c command.c comment.c tol.c line.c floatrep.c token.c misc.c visual.c
HFILES=misc.h strings.h line.h float.h floatrep.h tol.h command.h comment.h token.h edit.h parse.h compare.h flagdefs.h exact.h miller.h visual.h output.h
OTHER=README Makefile Sample.1 Sample.2 Sample.3 Sample.4 paper.ms paper.out
+
MANPAGE=spiff.1
# disable this line iff you like being honked at.
2001-03-26 03:51:11 -05:00
DEFS = -DNOCHATTER
1998-09-23 19:34:01 -04:00
2001-03-26 03:51:11 -05:00
-CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
+CFLAGS+=$(OSFLAG) $(TFLAG) $(VISFLAG) $(DEFS)
1998-09-23 19:34:01 -04:00
-default: spiff
+all: spiff
1998-09-23 19:34:01 -04:00
spiff: $(OBJ)
$(CC) $(CFLAGS) -o spiff $(OBJ) $(VISLIB) -l$(TLIB)
@@ -95,7 +96,6 @@ visual.o: visual.c misc.h visual.h $(MGRINCS)
1998-09-23 19:34:01 -04:00
misc.o: misc.c visual.h misc.h
parse.o: parse.c misc.h line.h command.h float.h tol.h comment.h parse.h token.h flagdefs.h
- @echo compiler may report 4 statement not reached warning messages for parse.c
$(CC) $(CFLAGS) -c parse.c
command.o: command.c float.h tol.h misc.h
2005-09-05 09:25:04 -04:00
@@ -107,7 +107,6 @@ tol.o: tol.c tol.h float.h
1998-09-23 19:34:01 -04:00
output.o: output.c output.h misc.h edit.h flagdefs.h
compare.o: compare.c misc.h strings.h float.h tol.h token.h line.h compare.h flagdefs.h
- @echo compiler may report 1 statement not reached warning message for compare.c
$(CC) $(CFLAGS) -c compare.c
float.o: float.c misc.h strings.h float.h floatrep.h