|
|
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 5.13 (Berkeley) 3/18/86
7: #
8: SRCS= getnetbyaddr.c getnetent.c getnetbyname.c \
9: getproto.c getprotoent.c getprotoname.c \
10: getservent.c getservbyport.c getservbyname.c \
11: rcmd.c rexec.c ruserpass.c \
12: res_comp.c res_debug.c res_init.c res_mkquery.c res_send.c
13:
14: OBJS= getnetbyaddr.o getnetent.o getnetbyname.o \
15: getproto.o getprotoent.o getprotoname.o \
16: getservent.o getservbyport.o getservbyname.o \
17: rcmd.o rexec.o ruserpass.o \
18: res_comp.o res_debug.o res_init.o res_mkquery.o res_send.o
19:
20: CFLAGS= -O ${DEFS}
21: TAGSFILE=tags
22:
23: .c.o:
24: ${CC} -p -c ${CFLAGS} $*.c
25: -ld -X -r $*.o
26: mv a.out profiled/$*.o
27: ${CC} ${CFLAGS} -c $*.c
28: -ld -x -r $*.o
29: mv a.out $*.o
30:
31: netlib netlib_p: ${OBJS}
32: @echo "building profiled netlib"
33: @cd profiled; ar cru ../netlib_p ${OBJS}
34: @echo "building normal netlib"
35: @ar cru netlib ${OBJS}
36:
37: tags:
38: cwd=`pwd`; \
39: for i in ${SRCS}; do \
40: ctags -a -f ${TAGSFILE} $$cwd/$$i; \
41: done
42:
43: clean:
44: rm -f *.o profiled/*.o errs a.out core netlib netlib_p \
45: tags Makefile.bak
46:
47: depend:
48: for i in ${SRCS}; do \
49: cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \
50: { if (rec != "") print rec; rec = $$0; prev = $$1; } \
51: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
52: else rec = rec " " $$2 } } \
53: END { print rec } ' >> makedep; done
54: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
55: echo '$$r makedep' >>eddep
56: echo 'w' >>eddep
57: cp Makefile Makefile.bak
58: ed - Makefile < eddep
59: rm eddep makedep
60: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
61: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
62: echo '# see make depend above' >> Makefile
63:
64: # DO NOT DELETE THIS LINE -- make depend uses it
65:
66: getnetbyaddr.o: getnetbyaddr.c /usr/include/netdb.h
67: getnetent.o: getnetent.c /usr/include/stdio.h /usr/include/sys/types.h
68: getnetent.o: /usr/include/sys/socket.h /usr/include/netdb.h
69: getnetent.o: /usr/include/ctype.h
70: getnetbyname.o: getnetbyname.c /usr/include/netdb.h
71: getproto.o: getproto.c /usr/include/netdb.h
72: getnetbyaddr.o: getnetbyaddr.c /usr/include/netdb.h
73: getnetent.o: getnetent.c /usr/include/stdio.h /usr/include/sys/types.h
74: getnetent.o: /usr/include/sys/socket.h /usr/include/netdb.h
75: getnetent.o: /usr/include/ctype.h
76: getnetbyname.o: getnetbyname.c /usr/include/netdb.h
77: getproto.o: getproto.c /usr/include/netdb.h
78: getprotoent.o: getprotoent.c /usr/include/stdio.h /usr/include/sys/types.h
79: getprotoent.o: /usr/include/sys/socket.h /usr/include/netdb.h
80: getprotoent.o: /usr/include/ctype.h
81: getprotoname.o: getprotoname.c /usr/include/netdb.h
82: getservent.o: getservent.c /usr/include/stdio.h /usr/include/sys/types.h
83: getservent.o: /usr/include/sys/socket.h /usr/include/netdb.h
84: getservent.o: /usr/include/ctype.h
85: getservbyport.o: getservbyport.c /usr/include/netdb.h
86: getservbyname.o: getservbyname.c /usr/include/netdb.h
87: rcmd.o: rcmd.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/pwd.h
88: rcmd.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
89: rcmd.o: /usr/include/signal.h /usr/include/sys/types.h
90: rcmd.o: /usr/include/sys/socket.h /usr/include/sys/stat.h
91: rcmd.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/errno.h
92: rexec.o: rexec.c /usr/include/sys/types.h /usr/include/sys/socket.h
93: rexec.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/netdb.h
94: rexec.o: /usr/include/errno.h
95: ruserpass.o: ruserpass.c /usr/include/stdio.h /usr/include/utmp.h
96: ruserpass.o: /usr/include/ctype.h /usr/include/sys/types.h
97: ruserpass.o: /usr/include/sys/stat.h /usr/include/errno.h
98: res_comp.o: res_comp.c /usr/include/sys/types.h /usr/include/stdio.h
99: res_comp.o: /usr/include/arpa/nameser.h
100: res_debug.o: res_debug.c /usr/include/sys/types.h /usr/include/netinet/in.h
101: res_debug.o: /usr/include/stdio.h /usr/include/arpa/nameser.h
102: res_init.o: res_init.c /usr/include/sys/types.h /usr/include/sys/socket.h
103: res_init.o: /usr/include/netinet/in.h /usr/include/stdio.h
104: res_init.o: /usr/include/arpa/nameser.h /usr/include/resolv.h
105: res_mkquery.o: res_mkquery.c /usr/include/stdio.h /usr/include/sys/types.h
106: res_mkquery.o: /usr/include/netinet/in.h /usr/include/arpa/nameser.h
107: res_mkquery.o: /usr/include/resolv.h
108: res_send.o: res_send.c /usr/include/sys/param.h
109: res_send.o: /usr/include/machine/machparam.h /usr/include/signal.h
110: res_send.o: /usr/include/sys/types.h /usr/include/sys/time.h
111: res_send.o: /usr/include/time.h /usr/include/sys/socket.h
112: res_send.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/errno.h
113: res_send.o: /usr/include/arpa/nameser.h /usr/include/resolv.h
114: # DEPENDENCIES MUST END AT END OF FILE
115: # IF YOU PUT STUFF HERE IT WILL GO AWAY
116: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.