1# Description file for the Make command 2# Makefile 4.5 87/05/05 3 4OBJECTS=ident.o main.o doname.o misc.o files.o dosys.o gram.o 5SOURCES=ident.c main.c doname.c misc.c files.c dosys.c gram.c 6CFLAGS= -O -DASCARCH -I. -I/usr/src/bin/make 7LIBES= 8LINT= lint -chapx 9 10all: make 11 12make: ${OBJECTS} 13 ${CC} -o $@ ${CFLAGS} ${OBJECTS} ${LIBES} 14 15${OBJECTS}: defs 16 17clean: 18 rm -f ${OBJECTS} gram.c make a.out errs core 19 20install: 21 install -s make ${DESTDIR}/bin/make 22 23lint: FRC 24 ${LINT} ${SOURCES} 25 rm -f gram.c 26 27tags: FRC 28 ctags ${SOURCES} 29 30FRC: 31 32depend: ${SOURCES} 33 cc -M ${CFLAGS} ${SOURCES} | sed -e 's, ./, ,g' | \ 34 awk ' { if ($$1 != prev) \ 35 { if (rec != "") print rec; rec = $$0; prev = $$1; } \ 36 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ 37 else rec = rec " " $$2 } } \ 38 END { print rec } ' >makedep 39 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep 40 echo '$$r makedep' >>eddep 41 echo 'w' >>eddep 42 cp Makefile Makefile.bak 43 ed - Makefile < eddep 44 rm eddep makedep 45 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile 46 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile 47 echo '# see make depend above' >> Makefile 48 49# DO NOT DELETE THIS LINE -- make depend uses it 50 51ident.o: ident.c 52main.o: main.c defs /usr/include/stdio.h /usr/include/ctype.h 53main.o: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h 54main.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h 55main.o: /usr/include/signal.h /usr/include/sys/stat.h 56doname.o: doname.c defs /usr/include/stdio.h /usr/include/ctype.h 57doname.o: /usr/include/sys/param.h /usr/include/sys/types.h 58doname.o: /usr/include/signal.h /usr/include/machine/machparam.h 59doname.o: /usr/include/sys/dir.h /usr/include/strings.h /usr/include/signal.h 60misc.o: misc.c defs /usr/include/stdio.h /usr/include/ctype.h 61misc.o: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h 62misc.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h 63files.o: files.c /usr/include/fcntl.h defs /usr/include/stdio.h 64files.o: /usr/include/ctype.h /usr/include/sys/param.h /usr/include/sys/types.h 65files.o: /usr/include/signal.h /usr/include/machine/machparam.h 66files.o: /usr/include/sys/dir.h /usr/include/sys/stat.h /usr/include/ar.h 67files.o: /usr/include/a.out.h /usr/include/sys/exec.h /usr/include/sys/stat.h 68dosys.o: dosys.c defs /usr/include/stdio.h /usr/include/ctype.h 69dosys.o: /usr/include/sys/param.h /usr/include/sys/types.h 70dosys.o: /usr/include/signal.h /usr/include/machine/machparam.h 71dosys.o: /usr/include/sys/dir.h /usr/include/signal.h /usr/include/errno.h 72dosys.o: /usr/include/sys/stat.h 73gram.o: gram.c defs /usr/include/stdio.h /usr/include/ctype.h 74gram.o: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h 75gram.o: /usr/include/machine/machparam.h /usr/include/sys/dir.h 76# DEPENDENCIES MUST END AT END OF FILE 77# IF YOU PUT STUFF HERE IT WILL GO AWAY 78# see make depend above 79