shithub: neatroff

ref: 500811612324dff317ec872d62d6f1f59559c35c
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 dir.o

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