ref: 1d88be4e3bd71b54af7c2ce8f3636e07c6250ce2
parent: 1c4eef426bcd7025b22e36222a999aa2668e1fe6
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Sep 13 16:32:27 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,14 +1,15 @@
# neatpost's default font directory
-FDIR=/root/troff/home/font
+FDIR = /neatroff/font
CC = cc
CFLAGS = -Wall -O2 "-DTROFFFDIR=\"$(FDIR)\""
LDFLAGS =
+OBJS = post.o out.o ps.o font.o dev.o clr.o
all: post
%.o: %.c post.h
$(CC) -c $(CFLAGS) $<
-post: post.o out.o ps.o font.o dev.o clr.o
- $(CC) -o $@ $^ $(LDFLAGS)
+post: $(OBJS)
+ $(CC) -o $@ $(OBJS) $(LDFLAGS)
clean:
rm -f *.o post