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

74 lines
2.4 KiB
Plaintext
Raw Normal View History

2005-09-05 09:25:04 -04:00
$OpenBSD: patch-Makefile,v 1.1 2005/09/05 13:25:04 espie Exp $
2001-03-26 03:51:11 -05:00
--- Makefile.orig Mon May 2 00:51:17 1994
2005-09-05 09:25:04 -04:00
+++ Makefile Mon Sep 5 15:22:50 2005
@@ -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
2005-09-05 09:25:04 -04:00
@@ -75,14 +75,15 @@ OBJ= spiff.o output.o compare.o float.o
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 spiff.0
spiff: $(OBJ)
$(CC) $(CFLAGS) -o spiff $(OBJ) $(VISLIB) -l$(TLIB)
2005-09-05 09:25:04 -04:00
@@ -95,7 +96,6 @@ visual.o: visual.c misc.h visual.h $(MGR
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
2005-09-05 09:25:04 -04:00
@@ -145,5 +144,7 @@ cmd:
-$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
1998-09-23 19:34:01 -04:00
install:
mv spiff $(INSDIR)/bin
2005-09-05 09:25:04 -04:00
- cp $(MANPAGE) $(INSDIR)/man/man1
1998-09-23 19:34:01 -04:00
-
2005-09-05 09:25:04 -04:00
+ cp $(MANPAGE) $(INSDIR)/man/cat1
1998-09-23 19:34:01 -04:00
+
+spiff.0: spiff.1
+ nroff -man spiff.1 > spiff.0