shithub: neatroff

ref: 683c46181fcd524b56ad3ab41fe799566428209d
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

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