|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1980 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 5.4 (Berkeley) 9/5/85 ! 7: # ! 8: ! 9: SRCS= inet_addr.c inet_network.c \ ! 10: inet_netof.c inet_ntoa.c inet_lnaof.c \ ! 11: inet_makeaddr.c ! 12: OBJS= inet_addr.o inet_network.o \ ! 13: inet_netof.o inet_ntoa.o inet_lnaof.o \ ! 14: inet_makeaddr.o ! 15: CFLAGS= -O ${DEFS} ! 16: TAGSFILE=tags ! 17: ! 18: .c.o: ! 19: ${CC} -p -c ${CFLAGS} $*.c ! 20: -ld -X -r $*.o ! 21: mv a.out profiled/$*.o ! 22: ${CC} ${CFLAGS} -c $*.c ! 23: -ld -x -r $*.o ! 24: mv a.out $*.o ! 25: ! 26: inetlib inetlib_p: ${OBJS} ! 27: @echo "building profiled inetlib" ! 28: @cd profiled; ar cru ../inetlib_p ${OBJS} ! 29: @echo "building normal inetlib" ! 30: @ar cru inetlib ${OBJS} ! 31: ! 32: tags: ! 33: cwd=`pwd`; \ ! 34: for i in ${SRCS}; do \ ! 35: ctags -a -f ${TAGSFILE} $$cwd/$$i; \ ! 36: done ! 37: ! 38: clean: ! 39: rm -f inetlib inetlib_p *.o profiled/*.o errs a.out core \ ! 40: tags Makefile.bak ! 41: ! 42: depend: ! 43: for i in ${SRCS}; do \ ! 44: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ ! 45: { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ! 46: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 47: else rec = rec " " $$2 } } \ ! 48: END { print rec } ' >> makedep; done ! 49: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 50: echo '$$r makedep' >>eddep ! 51: echo 'w' >>eddep ! 52: cp Makefile Makefile.bak ! 53: ed - Makefile < eddep ! 54: rm eddep makedep ! 55: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 56: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 57: echo '# see make depend above' >> Makefile ! 58: ! 59: # DO NOT DELETE THIS LINE -- make depend uses it ! 60: ! 61: inet_addr.o: inet_addr.c /usr/include/sys/types.h /usr/include/ctype.h ! 62: inet_addr.o: /usr/include/netinet/in.h ! 63: inet_network.o: inet_network.c /usr/include/sys/types.h /usr/include/ctype.h ! 64: inet_netof.o: inet_netof.c /usr/include/sys/types.h /usr/include/netinet/in.h ! 65: inet_ntoa.o: inet_ntoa.c /usr/include/sys/types.h /usr/include/netinet/in.h ! 66: inet_lnaof.o: inet_lnaof.c /usr/include/sys/types.h /usr/include/netinet/in.h ! 67: inet_makeaddr.o: inet_makeaddr.c /usr/include/sys/types.h ! 68: inet_makeaddr.o: /usr/include/netinet/in.h ! 69: # DEPENDENCIES MUST END AT END OF FILE ! 70: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 71: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.