shithub: neatroff

ref: 49749b6256e207d0d475b3ae1beb3a95e4c184be
dir: /Makefile/

View raw version
# neatroff's default font and macro directories
FDIR=/root/troff/home/font
MDIR=/root/troff/home/tmac

CC = cc
CFLAGS = -Wall -O2 "-DTROFFFDIR=\"$(FDIR)\"" "-DTROFFMDIR=\"$(MDIR)\""
LDFLAGS =

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 adj.o eval.o draw.o wb.o hyph.o map.o clr.o char.o
	$(CC) -o $@ $^ $(LDFLAGS)
clean:
	rm -f *.o roff