shithub: neatroff

ref: 7835cef164631789c1b631bc240bc82ba9438b52
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