shithub: neatroff

ref: 43cd1d55e135a83bf803145c5bc2f7a9feb9d62e
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