# # thud -- build a program that catches stupid core-dropping # by programs which assume "all the world's a vax" # and dereference null pointers.. # COPTS=-Xc LINTOPTS=-errchk -errfmt=simple -errsecurity -errtags -erroff=E_GLOBAL_COULD_BE_STATIC2 all: imaVax thud libthud.so.1 libthud.so.1: libthud.c thud.h lint ${LINTOPTS},E_SEC_SHELL_WARN,E_NAME_DEF_NOT_USED2,E_CAST_INT_TO_SMALL_INT \ libthud.c cc -g -KPIC -xregs=no%appl -errshort=short -c libthud.c ld -G -z defs -z initarray=initThud -o libthud.so.1 libthud.o -lc thud: thud.c thud.h lint ${LINTOPTS} thud.c cc -g -o thud thud.c imaVax: imaVax.c cc -g -erroff=%all -o imaVax imaVax.c test: imaVax thud libthud.so.1 ./thud imaVax 2>&1 | more install: all su root -c 'cp libthud.so.1 /usr/local/lib' -ln -s `pwd`/thud ${HOME}/bin/thud clean: rm -f libthud.so.1 thud imaVax core *.o