FP = # set to -f on machines without floating point CFLAGS=-O -s -DNEQN ${FP} YFLAGS=-d all: neqn cp: neqn cp neqn ${DESTDIR}/usr/bin/neqn rm *.o e.c e.def neqn cmp: neqn cmp neqn ${DESTDIR}/usr/bin/neqn rm *.o e.c e.def SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \ io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \ pile.c shift.c size.c sqrt.c text.c FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \ io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \ pile.o shift.o size.o sqrt.o text.o neqn: $(FILES) cc -n $(CFLAGS) $(FILES) -o neqn e.c: e.def e.def: e.y yacc -d e.y mv y.tab.c e.c mv y.tab.h e.def $(FILES): e.h e.def list: pr TODO $(SOURCE) makefile gcos: y.tab.c fsend e.h e.y *.c src: makefile $(SOURCE) cp $? ${DESTDIR}/usr/src/cmd/neqn touch src lint: y.tab.c lint -spb *.c clean: rm -f *.o