source: trunk/athena/bin/discuss/libds/Makefile @ 1032

Revision 1032, 4.6 KB checked in by raeburn, 36 years ago (diff)
Serious revisions have taken place...new files, profiling library, cleanup in some places...
Line 
1CFLAGS= -g -I../include
2LFLAGS= -uhv -I../include -DKERBEROS -DCONNECT -DSUBPROC
3
4SRCS=   tfile.c tunix.c tnet.c stubs.c dsname.c interface.c rpcall.c \
5        conv_mgr.c host.c announce.c \
6        res_module.c auth_krb.c dsc_enter.c auth_dum.c
7
8OBJS=   tfile.o tunix.o tnet.o stubs.o dsname.o interface.o rpcall.o \
9        conv_mgr.o host.o announce.o \
10        ../ets/usp_et.o ../ets/rpc_et.o dsc_enter.o
11
12KOBJS=  res_module.k.o auth_krb.o ../ets/krb_et.o
13NKOBJS= res_module.nk.o auth_dum.o
14
15all:    libds.a libdsk.a llib-lds.ln
16
17libds.a:        $(OBJS) ${NKOBJS}
18        ar cruv libds.a $(OBJS) ${NKOBJS}
19        ranlib libds.a
20
21libdsk.a:       $(OBJS) ${KOBJS}
22        ar cruv libdsk.a $(OBJS) ${KOBJS}
23        ranlib libdsk.a
24
25libds_p.a:      ${OBJS} ${NKOBJS}
26        (cd profiled; ar cruv ../libds_p.a ${OBJS} ${NKOBJS} ; \
27                ranlib ../libds_p.a)
28
29libdsk_p.a:     ${OBJS} ${KOBJS}
30        (cd profiled; ar cruv ../libdsk_p.a ${OBJS} ${KOBJS} ; \
31                ranlib ../libdsk_p.a)
32
33lint:   llib-lds.ln
34
35llib-lds.ln: $(SRCS)
36        lint -Cds $(LFLAGS) $(SRCS)
37
38# these should make profiled versions too
39res_module.k.o: res_module.c
40        rm -f res_module.k.o res_module.o profiled/res_module.k.o
41        ${CC} $(CFLAGS) -DKERBEROS -c -p res_module.c
42        mv res_module.o profiled/res_module.k.o
43        ${CC} $(CFLAGS) -DKERBEROS -c res_module.c
44        mv res_module.o res_module.k.o
45
46res_module.nk.o: res_module.c
47        rm -f res_module.nk.o res_module.o profiled/res_module.nk.o
48        ${CC} $(CFLAGS) -c -p res_module.c
49        mv res_module.o profiled/res_module.nk.o
50        ${CC} ${CFLAGS} -c res_module.c
51        mv res_module.o res_module.nk.o
52
53install:
54
55dist:   $(SRCS) Makefile
56        -mkdir ../dist/libds
57        -mkdir ../dist/libds/profiled
58        cp -p $(SRCS) ../dist/libds/
59        cp -p Makefile ../dist/libds/
60
61.c.o:
62        -rm -f $*.o profiled/$*.o
63        ${CC} -c -pg ${CFLAGS} $*.c
64        mv -f $*.o profiled/$*.o
65        ${CC} -c ${CFLAGS} $*.c
66
67clean:
68        rm -rf *~ \#* *.o libds.a libdsk.a profiled/ llib-lds.ln
69
70# 'make depend' code
71depend: ${CFILES}
72        ${CC} -M ${CFLAGS} ${SRCS} | \
73        sed -e ':loop' \
74            -e 's/\.\.\/[^ /]*\/\.\./../' \
75            -e 't loop' | \
76        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
77                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
78                       else rec = rec " " $$2 } } \
79              END { print rec } ' > makedep
80        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
81        echo '$$r makedep' >>eddep
82        echo 'w' >>eddep
83        cp Makefile Makefile.bak
84        ed - Makefile < eddep
85        rm eddep makedep
86#
87# the last line in the makefile should be...
88# DO NOT DELETE THIS LINE
89
90tfile.o: tfile.c /usr/include/stdio.h /usr/include/errno.h ./../include/tfile.h
91tfile.o: /usr/include/sys/types.h /usr/include/sys/stat.h
92tunix.o: tunix.c /usr/include/stdio.h ./../include/tfile.h /usr/include/errno.h
93tunix.o: /usr/include/sys/types.h /usr/include/sys/stat.h
94tnet.o: tnet.c /usr/include/stdio.h ./../include/usp.h ./../include/usp_et.h
95tnet.o: ./../include/tfile.h /usr/include/errno.h
96stubs.o: stubs.c ./../include/interface.h ./../include/types.h
97stubs.o: ./../include/rpc.h /usr/include/stdio.h ./../include/usp.h
98stubs.o: ./../include/usp_et.h ./../include/rpc_et.h ./../include/tfile.h
99stubs.o: ./../include/acl.h ./../include/types.h
100dsname.o: dsname.c /usr/include/stdio.h /usr/include/strings.h
101dsname.o: /usr/include/pwd.h /usr/include/sys/file.h /usr/include/sys/param.h
102dsname.o: /usr/include/machine/machparam.h /usr/include/signal.h
103dsname.o: /usr/include/sys/types.h /usr/include/errno.h ../include/config.h
104dsname.o: ../include/dsname.h ../include/dsc_et.h
105interface.o: interface.c /usr/include/stdio.h /usr/include/strings.h
106interface.o: ../include/tfile.h ../include/interface.h ../include/types.h
107interface.o: ../include/acl.h ../include/types.h /usr/include/errno.h
108interface.o: ../include/dsname.h
109rpcall.o: rpcall.c /usr/include/sys/types.h /usr/include/stdio.h
110rpcall.o: /usr/include/ctype.h /usr/include/strings.h /usr/include/sys/socket.h
111rpcall.o: /usr/include/netinet/in.h /usr/include/netdb.h ../include/tfile.h
112rpcall.o: ../include/rpc.h /usr/include/stdio.h ../include/usp.h
113rpcall.o: ../include/usp_et.h ../include/rpc_et.h ../include/config.h
114conv_mgr.o: conv_mgr.c /usr/include/errno.h /usr/include/strings.h
115conv_mgr.o: ../include/rpc.h /usr/include/stdio.h ../include/usp.h
116conv_mgr.o: ../include/usp_et.h ../include/rpc_et.h
117host.o: host.c /usr/include/strings.h /usr/include/netdb.h /usr/include/ctype.h
118announce.o: announce.c /usr/include/stdio.h /usr/include/sys/file.h
119announce.o: ../include/tfile.h ../include/interface.h ../include/types.h
120announce.o: ../include/dsname.h ../include/dsc_et.h
121res_module.o: res_module.c ../include/rpc_et.h ../include/config.h
122res_module.o: /usr/include/netdb.h /usr/include/strings.h /usr/include/ctype.h
123auth_krb.o: auth_krb.c /usr/include/strings.h /usr/include/ctype.h
124auth_krb.o: /usr/include/krb.h ../include/des.h
Note: See TracBrowser for help on using the repository browser.