shithub: neatroff

ref: ac60e4b6a01cc80ede183342be54f98117306a4a
dir: /Makefile/

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

CC = cc
CFLAGS = -Wall -O2 "-DTROFFFDIR=\"$(FDIR)\"" "-DTROFFMDIR=\"$(MDIR)\""
LDFLAGS =
OBJS = 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 iset.o

all: roff
%.o: %.c roff.h
	$(CC) -c $(CFLAGS) $<
roff: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LDFLAGS)
clean:
	rm -f *.o roff