|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1983 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 6.3 (Berkeley) 3/18/86 ! 7: # ! 8: ! 9: OBJS= gethostnamadr.o sethostent.o ! 10: ! 11: SRCS= gethostnamadr.c sethostent.c ! 12: ! 13: CFLAGS= -O ${DEFS} ! 14: TAGSFILE= tags ! 15: DESTDIR= ! 16: ! 17: .c.o: ! 18: ${CC} -p -c ${CFLAGS} $*.c ! 19: -ld -X -r $*.o ! 20: mv a.out profiled/$*.o ! 21: ${CC} ${CFLAGS} -c $*.c ! 22: -ld -x -r $*.o ! 23: mv a.out $*.o ! 24: ! 25: hostlib hostlib_p: ${OBJS} ! 26: @echo "building profiled hostlib" ! 27: @cd profiled; ar cru ../hostlib_p ${OBJS} ! 28: @echo "building normal hostlib" ! 29: @ar cru hostlib ${OBJS} ! 30: ! 31: tags: ! 32: cwd=`pwd`; \ ! 33: for i in ${SRCS}; do \ ! 34: ctags -a -f ${TAGSFILE} $$cwd/$$i; \ ! 35: done ! 36: ! 37: clean: ! 38: rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o \ ! 39: tags Makefile.bak ! 40: ! 41: depend: ! 42: for i in ${SRCS}; do \ ! 43: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ ! 44: { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ! 45: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 46: else rec = rec " " $$2 } } \ ! 47: END { print rec } ' >> makedep; done ! 48: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 49: echo '$$r makedep' >>eddep ! 50: echo 'w' >>eddep ! 51: cp Makefile Makefile.bak ! 52: ed - Makefile < eddep ! 53: rm eddep makedep ! 54: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 55: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 56: echo '# see make depend above' >> Makefile ! 57: ! 58: # DO NOT DELETE THIS LINE -- make depend uses it ! 59: ! 60: gethostnamadr.o: gethostnamadr.c /usr/include/sys/param.h ! 61: gethostnamadr.o: /usr/include/machine/machparam.h /usr/include/signal.h ! 62: gethostnamadr.o: /usr/include/sys/types.h /usr/include/sys/socket.h ! 63: gethostnamadr.o: /usr/include/netinet/in.h /usr/include/sys/types.h ! 64: gethostnamadr.o: /usr/include/ctype.h /usr/include/netdb.h /usr/include/stdio.h ! 65: gethostnamadr.o: /usr/include/errno.h /usr/include/arpa/nameser.h ! 66: gethostnamadr.o: /usr/include/resolv.h ! 67: sethostent.o: sethostent.c ! 68: # DEPENDENCIES MUST END AT END OF FILE ! 69: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 70: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.