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

Revision 1942, 6.5 KB checked in by srz, 35 years ago (diff)
Makefile for Discuss 1.5
Line 
1CFLAGS= -g -O -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 tmem.c
7
8USPET=../ets/usp_et.o
9RPCET=../ets/rpc_et.o
10DSCET=../ets/dsc_et.o
11ETS=$(USPET) $(RPCET)
12OBJS=   tfile.o tunix.o tnet.o stubs.o dsname.o interface.o rpcall.o \
13        conv_mgr.o host.o announce.o dsc_enter.o tmem.o
14#       $(USPET) $(RPCET) $(DSCET)
15
16KRBET=../ets/krb_et.o
17KOBJS=  res_module.k.o auth_krb.o # ../ets/krb_et.o
18NKOBJS= res_module.nk.o auth_dum.o
19
20all:    libds.a libdsk.a libds_p.a libdsk_p.a
21
22libds.a:        $(OBJS) ${NKOBJS} $(USPET) $(ETS)
23        ar cruv libds.a $(OBJS) ${NKOBJS} $(RPCET) $(USPET) $(DSCET)
24        ranlib libds.a
25
26libdsk.a:       $(OBJS) ${KOBJS} $(ETS) $(KRBET)
27        ar cruv libdsk.a $(OBJS) ${KOBJS} $(RPCET) $(USPET) $(DSCET) $(KRBET)
28        ranlib libdsk.a
29
30libds_p.a:      ${OBJS} ${NKOBJS} $(ETS)
31        (cd profiled; \
32            ar cruv ../libds_p.a ${OBJS} ${NKOBJS} ../$(RPCET) ../$(USPET) ../$(DSCET) ; \
33            ranlib ../libds_p.a)
34
35libdsk_p.a:     ${OBJS} ${KOBJS} $(ETS) $(KRBET)
36        (cd profiled; \
37            ar cruv ../libdsk_p.a ${OBJS} ${KOBJS} ../$(RPCET) ../$(USPET) ../$(KRBET) ../$(DSCET); \
38            ranlib ../libdsk_p.a)
39
40lint:   llib-lds.ln
41
42llib-lds.ln: $(SRCS)
43        lint -Cds $(LFLAGS) $(SRCS)
44
45# these should make profiled versions too
46res_module.k.o: res_module.c
47        rm -f res_module.k.o res_module.o profiled/res_module.k.o
48        ${CC} $(CFLAGS) -DKERBEROS -c -p res_module.c
49        mv res_module.o profiled/res_module.k.o
50        ${CC} $(CFLAGS) -DKERBEROS -c res_module.c
51        mv res_module.o res_module.k.o
52
53res_module.nk.o: res_module.c
54        rm -f res_module.nk.o res_module.o profiled/res_module.nk.o
55        ${CC} $(CFLAGS) -c -p res_module.c
56        mv res_module.o profiled/res_module.nk.o
57        ${CC} ${CFLAGS} -c res_module.c
58        mv res_module.o res_module.nk.o
59
60install:
61
62dist:   $(SRCS) Makefile
63        -mkdir ../../dist/source/libds
64        -mkdir ../../dist/source/libds/profiled
65        cp -p $(SRCS) ../../dist/source/libds/
66        cp -p Makefile ../../dist/source/libds/
67
68.c.o:
69        -rm -f $*.o profiled/$*.o
70        ${CC} -c -pg ${CFLAGS} $*.c
71        mv -f $*.o profiled/$*.o
72        ${CC} -c ${CFLAGS} $*.c
73
74clean:
75        rm -rf *~ \#* *.o libds.a libdsk.a profiled/ llib-lds.ln
76
77# 'make depend' code
78depend: ${CFILES}
79        ${CC} -M ${CFLAGS} ${SRCS} > 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
87undepend:
88        rm -f Makefile.bak
89        cp Makefile Makefile.bak
90        echo '/^# DO NOT DELETE THIS LINE/+1,$$c' >eddep
91        echo '#' >>eddep
92        echo '.' >>eddep
93        echo 'w' >>eddep
94        ed - Makefile < eddep
95        rm -f eddep makedep
96#
97# the last line in the makefile should be...
98# DO NOT DELETE THIS LINE
99tfile.o: tfile.c
100tfile.o: /usr/include/stdio.h
101tfile.o: /usr/include/errno.h
102tfile.o: ../include/discuss/tfile.h
103tfile.o: /usr/include/sys/types.h
104tfile.o: /usr/include/sys/stat.h
105tunix.o: tunix.c
106tunix.o: /usr/include/stdio.h
107tunix.o: ../include/discuss/tfile.h
108tunix.o: /usr/include/errno.h
109tunix.o: /usr/include/sys/types.h
110tunix.o: /usr/include/sys/stat.h
111tnet.o: tnet.c
112tnet.o: /usr/include/stdio.h
113tnet.o: ../include/usp.h
114tnet.o: ../include/usp_et.h
115tnet.o: ../include/discuss/tfile.h
116tnet.o: /usr/include/errno.h
117stubs.o: stubs.c
118stubs.o: ../include/discuss/interface.h
119stubs.o: ../include/discuss/types.h
120stubs.o: ../include/rpc.h
121stubs.o: /usr/include/stdio.h
122stubs.o: ../include/usp.h
123stubs.o: ../include/usp_et.h
124stubs.o: ../include/rpc_et.h
125stubs.o: ../include/discuss/tfile.h
126stubs.o: ../include/discuss/acl.h
127dsname.o: dsname.c
128dsname.o: /usr/include/stdio.h
129dsname.o: /usr/include/strings.h
130dsname.o: /usr/include/pwd.h
131dsname.o: /usr/include/sys/file.h
132dsname.o: /usr/include/sys/param.h
133dsname.o: /usr/include/machine/machparam.h
134dsname.o: /usr/include/signal.h
135dsname.o: /usr/include/sys/types.h
136dsname.o: /usr/include/errno.h
137dsname.o: /usr/include/assert.h
138dsname.o: ../include/discuss/dsname.h
139dsname.o: ../include/discuss/dsc_et.h
140dsname.o: ../include/ansi.h
141interface.o: interface.c
142interface.o: /usr/include/stdio.h
143interface.o: /usr/include/string.h
144interface.o: /usr/include/strings.h
145interface.o: /usr/include/errno.h
146interface.o: ../include/discuss/tfile.h
147interface.o: ../include/discuss/interface.h
148interface.o: ../include/discuss/types.h
149interface.o: ../include/discuss/acl.h
150interface.o: ../include/discuss/dsname.h
151interface.o: ../include/rpc.h
152interface.o: /usr/include/stdio.h
153interface.o: ../include/usp.h
154interface.o: ../include/usp_et.h
155interface.o: ../include/rpc_et.h
156interface.o: ../include/discuss/dsc_et.h
157rpcall.o: rpcall.c
158rpcall.o: /usr/include/sys/types.h
159rpcall.o: /usr/include/stdio.h
160rpcall.o: /usr/include/ctype.h
161rpcall.o: /usr/include/strings.h
162rpcall.o: /usr/include/sys/socket.h
163rpcall.o: /usr/include/netinet/in.h
164rpcall.o: /usr/include/netdb.h
165rpcall.o: ../include/discuss/tfile.h
166rpcall.o: ../include/rpc.h
167rpcall.o: /usr/include/stdio.h
168rpcall.o: ../include/usp.h
169rpcall.o: ../include/usp_et.h
170rpcall.o: ../include/rpc_et.h
171rpcall.o: ../include/config.h
172conv_mgr.o: conv_mgr.c
173conv_mgr.o: /usr/include/errno.h
174conv_mgr.o: /usr/include/string.h
175conv_mgr.o: /usr/include/strings.h
176conv_mgr.o: ../include/rpc.h
177conv_mgr.o: /usr/include/stdio.h
178conv_mgr.o: ../include/usp.h
179conv_mgr.o: ../include/usp_et.h
180conv_mgr.o: ../include/rpc_et.h
181host.o: host.c
182host.o: /usr/include/strings.h
183host.o: /usr/include/netdb.h
184host.o: /usr/include/ctype.h
185announce.o: announce.c
186announce.o: /usr/include/stdio.h
187announce.o: /usr/include/sys/file.h
188announce.o: ../include/discuss/tfile.h
189announce.o: ../include/discuss/interface.h
190announce.o: ../include/discuss/types.h
191announce.o: ../include/discuss/dsname.h
192announce.o: ../include/discuss/dsc_et.h
193res_module.o: res_module.c
194res_module.o: ../include/rpc_et.h
195res_module.o: ../include/config.h
196res_module.o: /usr/include/netdb.h
197res_module.o: /usr/include/string.h
198res_module.o: /usr/include/strings.h
199res_module.o: /usr/include/ctype.h
200auth_krb.o: auth_krb.c
201auth_krb.o: /usr/include/strings.h
202auth_krb.o: /usr/include/ctype.h
203auth_krb.o: /usr/include/krb.h
204auth_krb.o: ../include/mit-copyright.h
205auth_krb.o: /usr/include/des.h
206auth_krb.o: ../include/mit-copyright.h
207auth_krb.o: /usr/include/des_conf.h
208auth_krb.o: ../include/mit-copyright.h
209dsc_enter.o: dsc_enter.c
210dsc_enter.o: /usr/include/stdio.h
211dsc_enter.o: /usr/include/strings.h
212dsc_enter.o: /usr/include/ctype.h
213dsc_enter.o: /usr/include/sys/file.h
214dsc_enter.o: ../include/discuss/tfile.h
215dsc_enter.o: ../include/discuss/types.h
216auth_dum.o: auth_dum.c
217tmem.o: tmem.c
218tmem.o: /usr/include/errno.h
219tmem.o: /usr/include/sys/types.h
220tmem.o: /usr/include/sys/uio.h
221tmem.o: ../include/discuss/tfile.h
Note: See TracBrowser for help on using the repository browser.