Make all the default target in libadmin samples and test
[openafs.git] / src / libadmin / samples / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 CC = ${MT_CC}
16 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS}
17
18 SAMPLEPROGS=\
19         cm_client_config \
20         cm_list_cells \
21         cm_local_cell \
22         cm_server_prefs \
23         rxdebug_basic_stats \
24         rxdebug_conns \
25         rxdebug_peers \
26         rxdebug_rx_stats \
27         rxdebug_supported_stats \
28         rxdebug_version \
29         rxstat_clear_peer \
30         rxstat_clear_process \
31         rxstat_disable_peer \
32         rxstat_disable_process \
33         rxstat_enable_peer \
34         rxstat_enable_process \
35         rxstat_get_peer \
36         rxstat_get_process \
37         rxstat_get_version \
38         rxstat_query_peer \
39         rxstat_query_process
40
41 SAMPLELIBS =\
42         ${TOP_LIBDIR}/libafsadminutil.a \
43         ${TOP_LIBDIR}/libclientadmin.a \
44         ${TOP_LIBDIR}/libvosadmin.a \
45         ${TOP_LIBDIR}/libbosadmin.a \
46         ${TOP_LIBDIR}/libafsauthent.a \
47         ${TOP_LIBDIR}/libafsrpc.a \
48         $(TOP_LIBDIR)/libafsutil.a
49
50 all test tests: $(SAMPLEPROGS)
51
52 cm_client_config: cm_client_config.o $(SAMPLELIBS)
53         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
54
55 cm_list_cells: cm_list_cells.o $(SAMPLELIBS)
56         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
57
58 cm_local_cell: cm_local_cell.o $(SAMPLELIBS)
59         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
60
61 cm_server_prefs: cm_server_prefs.o $(SAMPLELIBS)
62         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
63
64 rxdebug_basic_stats: rxdebug_basic_stats.o $(SAMPLELIBS)
65         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
66
67 rxdebug_conns: rxdebug_conns.o $(SAMPLELIBS)
68         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
69
70 rxdebug_peers: rxdebug_peers.o $(SAMPLELIBS)
71         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
72
73 rxdebug_rx_stats: rxdebug_rx_stats.o $(SAMPLELIBS)
74         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
75
76 rxdebug_supported_stats: rxdebug_supported_stats.o $(SAMPLELIBS)
77         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
78
79 rxdebug_version: rxdebug_version.o $(SAMPLELIBS)
80         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
81
82 rxstat_clear_peer: rxstat_clear_peer.o $(SAMPLELIBS)
83         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
84
85 rxstat_clear_process: rxstat_clear_process.o $(SAMPLELIBS)
86         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
87
88 rxstat_disable_peer: rxstat_disable_peer.o $(SAMPLELIBS)
89         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
90
91 rxstat_disable_process: rxstat_disable_process.o $(SAMPLELIBS)
92         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
93
94 rxstat_enable_peer: rxstat_enable_peer.o $(SAMPLELIBS)
95         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
96
97 rxstat_enable_process: rxstat_enable_process.o $(SAMPLELIBS)
98         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
99
100 rxstat_get_peer: rxstat_get_peer.o $(SAMPLELIBS)
101         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
102
103 rxstat_get_process: rxstat_get_process.o $(SAMPLELIBS)
104         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
105
106 rxstat_get_version: rxstat_get_version.o $(SAMPLELIBS)
107         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
108
109 rxstat_query_peer: rxstat_query_peer.o $(SAMPLELIBS)
110         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
111
112 rxstat_query_process: rxstat_query_process.o $(SAMPLELIBS)
113         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
114
115 #
116 # Errors
117 #
118 rxstat_query_peer.o: rxstat_query_peer.c
119         $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
120
121 rxstat_query_process.o: rxstat_query_process.c
122         $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
123
124 #######################################################################
125 install:
126
127 dest:
128
129 clean:
130         $(RM) -f *.o $(SAMPLEPROGS) core
131