shithub: neatroff

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