shithub: neatroff

Download patch

ref: d93cad67e75be412c2c4a88ba5d834d7efadcf73
parent: ce91ef69c3cea83e7ec77f79f2ada45f345eb944
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Sep 13 16:35:03 EDT 2014

Makefile: compatibility with openbsd

This was first reported Dirk-Wilhelm Peters <peters@schwertfisch.de>
and this patch was suggested by Carsten Kunze <carsten.kunze@arcor.de>.

--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,17 @@
 # neatroff's default font and macro directories
-FDIR=/root/troff/home/font
-MDIR=/root/troff/home/tmac
+FDIR = /neatroff/font
+MDIR = /neatroff/tmac
 
 CC = cc
 CFLAGS = -Wall -O2 "-DTROFFFDIR=\"$(FDIR)\"" "-DTROFFMDIR=\"$(MDIR)\""
 LDFLAGS =
+OBJS = roff.o dev.o font.o in.o cp.o tr.o ren.o out.o reg.o sbuf.o fmt.o \
+	eval.o draw.o wb.o hyph.o map.o clr.o char.o dict.o
 
 all: roff
 %.o: %.c roff.h
 	$(CC) -c $(CFLAGS) $<
-roff: roff.o dev.o font.o in.o cp.o tr.o ren.o out.o reg.o sbuf.o fmt.o eval.o draw.o wb.o hyph.o map.o clr.o char.o dict.o
-	$(CC) -o $@ $^ $(LDFLAGS)
+roff: $(OBJS)
+	$(CC) -o $@ $(OBJS) $(LDFLAGS)
 clean:
 	rm -f *.o roff