shithub: neatroff

ref: 7e4c525d86df55de3f726b5718c739d4bb0dce5c
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