--- cci/usr/src/etc/htable/Makefile 2019/07/28 12:24:19 1.1 +++ cci/usr/src/etc/htable/Makefile 2019/07/28 12:24:40 1.1.1.2 @@ -1,10 +1,36 @@ -# Source for this area not supported in general source release. Please -# refer to specific release package / software source. +# @(#)Makefile 4.5 5/28/83 -default: dummy -all: dummy -install: dummy -clean: dummy -dummy: - @echo "make complete" -# +MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} +OPTIONS=-DLOCALNET=46 +CFLAGS= -O -I${INCLDIR} +DESTDIR= +ALL= htable + +all: ${ALL} + +htable: htable.o parse.o scan.o + ${CC} htable.o parse.o scan.o -o htable + +htable.o: htable.c htable.h + ${CC} ${CFLAGS} ${OPTIONS} -c htable.c + +scan.o: scan.c htable.h y.tab.h + +parse.o: parse.c htable.h + +scan.c: scan.l + +parse.c: parse.y + +y.tab.h: + ${YACC} -d parse.y + rm y.tab.c + +clean: + rm -f ${ALL} *.o *.s y.tab.h errs + +cleansrc: + rm -f *.[chyl] Makefile + +install: + install -s htable ${DESTDIR}/etc/htable