# # Makefile for /bin/strip # DESTDIR= CFLAGS= -O -DUW strip: strip.c ${CC} ${CFLAGS} -o $@ $@.c install: install -s strip ${DESTDIR}/bin/newstrip; \ mv ${DESTDIR}/bin/newstrip ${DESTDIR}/bin/strip; tags: ctags -tdw *.c clean: rm -f a.out core *.s *.o made depend: cc -M ${INCPATH} strip.c | sed 's/\.o//' | \ awk ' { if ($$1 != prev) \ { if (rec != "") print rec; rec = $$0; prev = $$1; } \ else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ else rec = rec " " $$2 } } \ END { print rec } ' >> makedep echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep echo '$$r makedep' >>eddep echo 'w' >>eddep cp Makefile Makefile.bak ed - Makefile < eddep rm eddep makedep echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile echo '# see make depend above' >> Makefile # DO NOT DELETE THIS LINE -- make depend uses it # DEPENDENCIES MUST END AT END OF FILE strip: strip.c /usr/include/a.out.h /usr/include/sys/exec.h strip: /usr/include/signal.h /usr/include/stdio.h /usr/include/sys/file.h # DEPENDENCIES MUST END AT END OF FILE # IF YOU PUT STUFF HERE IT WILL GO AWAY # see make depend above