1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.pthread
12 top_builddir=@TOP_OBJDIR@
23 rxdebug_supported_stats \
26 rxstat_clear_process \
28 rxstat_disable_process \
30 rxstat_enable_process \
38 ${TOP_LIBDIR}/libafsadminutil.a \
39 ${TOP_LIBDIR}/libclientadmin.a \
40 ${TOP_LIBDIR}/libvosadmin.a \
41 ${TOP_LIBDIR}/libbosadmin.a \
42 ${TOP_LIBDIR}/libafsrpc.a \
43 $(top_builddir)/src/auth/liboafs_auth.la \
44 $(top_builddir)/src/kauth/liboafs_kauth.la \
45 $(top_builddir)/src/util/liboafs_util.la \
46 $(top_builddir)/src/ubik/liboafs_ubik.la \
47 $(top_builddir)/src/opr/liboafs_opr.la \
48 ${TOP_LIBDIR}/libafshcrypto_lwp.a
50 all test tests: $(SAMPLEPROGS)
52 cm_client_config: cm_client_config.o $(SAMPLELIBS)
53 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
56 cm_list_cells: cm_list_cells.o $(SAMPLELIBS)
57 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
60 cm_local_cell: cm_local_cell.o $(SAMPLELIBS)
61 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
64 cm_server_prefs: cm_server_prefs.o $(SAMPLELIBS)
65 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
68 rxdebug_basic_stats: rxdebug_basic_stats.o $(SAMPLELIBS)
69 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
72 rxdebug_conns: rxdebug_conns.o $(SAMPLELIBS)
73 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
76 rxdebug_peers: rxdebug_peers.o $(SAMPLELIBS)
77 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
80 rxdebug_rx_stats: rxdebug_rx_stats.o $(SAMPLELIBS)
81 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
84 rxdebug_supported_stats: rxdebug_supported_stats.o $(SAMPLELIBS)
85 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
88 rxdebug_version: rxdebug_version.o $(SAMPLELIBS)
89 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
92 rxstat_clear_peer: rxstat_clear_peer.o $(SAMPLELIBS)
93 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
96 rxstat_clear_process: rxstat_clear_process.o $(SAMPLELIBS)
97 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
100 rxstat_disable_peer: rxstat_disable_peer.o $(SAMPLELIBS)
101 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
104 rxstat_disable_process: rxstat_disable_process.o $(SAMPLELIBS)
105 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
108 rxstat_enable_peer: rxstat_enable_peer.o $(SAMPLELIBS)
109 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
112 rxstat_enable_process: rxstat_enable_process.o $(SAMPLELIBS)
113 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
116 rxstat_get_peer: rxstat_get_peer.o $(SAMPLELIBS)
117 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
120 rxstat_get_process: rxstat_get_process.o $(SAMPLELIBS)
121 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
124 rxstat_get_version: rxstat_get_version.o $(SAMPLELIBS)
125 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
128 rxstat_query_peer: rxstat_query_peer.o $(SAMPLELIBS)
129 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
132 rxstat_query_process: rxstat_query_process.o $(SAMPLELIBS)
133 $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
140 CFLAGS_rxstat_query_peer.o = @CFLAGS_NOERROR@
141 CFLAGS_rxstat_query_process.o = @CFLAGS_NOERROR@
143 #######################################################################
145 ${INSTALL} -d ${DESTDIR}${sbindir}
146 ${INSTALL_PROGRAM} rxstat_clear_peer ${DESTDIR}${sbindir}/rxstat_clear_peer
147 ${INSTALL_PROGRAM} rxstat_clear_process ${DESTDIR}${sbindir}/rxstat_clear_process
148 ${INSTALL_PROGRAM} rxstat_disable_peer ${DESTDIR}${sbindir}/rxstat_disable_peer
149 ${INSTALL_PROGRAM} rxstat_disable_process ${DESTDIR}${sbindir}/rxstat_disable_process
150 ${INSTALL_PROGRAM} rxstat_enable_peer ${DESTDIR}${sbindir}/rxstat_enable_peer
151 ${INSTALL_PROGRAM} rxstat_enable_process ${DESTDIR}${sbindir}/rxstat_enable_process
152 ${INSTALL_PROGRAM} rxstat_get_peer ${DESTDIR}${sbindir}/rxstat_get_peer
153 ${INSTALL_PROGRAM} rxstat_get_process ${DESTDIR}${sbindir}/rxstat_get_process
154 ${INSTALL_PROGRAM} rxstat_get_version ${DESTDIR}${sbindir}/rxstat_get_version
155 ${INSTALL_PROGRAM} rxstat_query_peer ${DESTDIR}${sbindir}/rxstat_query_peer
156 ${INSTALL_PROGRAM} rxstat_query_process ${DESTDIR}${sbindir}/rxstat_query_process
159 ${INSTALL} -d ${DEST}/etc
160 ${INSTALL_PROGRAM} rxstat_clear_peer ${DEST}/etc/rxstat_clear_peer
161 ${INSTALL_PROGRAM} rxstat_clear_process ${DEST}/etc/rxstat_clear_process
162 ${INSTALL_PROGRAM} rxstat_disable_peer ${DEST}/etc/rxstat_disable_peer
163 ${INSTALL_PROGRAM} rxstat_disable_process ${DEST}/etc/rxstat_disable_process
164 ${INSTALL_PROGRAM} rxstat_enable_peer ${DEST}/etc/rxstat_enable_peer
165 ${INSTALL_PROGRAM} rxstat_enable_process ${DEST}/etc/rxstat_enable_process
166 ${INSTALL_PROGRAM} rxstat_get_peer ${DEST}/etc/rxstat_get_peer
167 ${INSTALL_PROGRAM} rxstat_get_process ${DEST}/etc/rxstat_get_process
168 ${INSTALL_PROGRAM} rxstat_get_version ${DEST}/etc/rxstat_get_version
169 ${INSTALL_PROGRAM} rxstat_query_peer ${DEST}/etc/rxstat_query_peer
170 ${INSTALL_PROGRAM} rxstat_query_process ${DEST}/etc/rxstat_query_process
174 $(RM) -f *.o $(SAMPLEPROGS) core