shithub: neatroff

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