Add support for warning checked builds
[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 cm_client_config: cm_client_config.o $(SAMPLELIBS)
51         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
52
53 cm_list_cells: cm_list_cells.o $(SAMPLELIBS)
54         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
55
56 cm_local_cell: cm_local_cell.o $(SAMPLELIBS)
57         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
58
59 cm_server_prefs: cm_server_prefs.o $(SAMPLELIBS)
60         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
61
62 rxdebug_basic_stats: rxdebug_basic_stats.o $(SAMPLELIBS)
63         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
64
65 rxdebug_conns: rxdebug_conns.o $(SAMPLELIBS)
66         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
67
68 rxdebug_peers: rxdebug_peers.o $(SAMPLELIBS)
69         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
70
71 rxdebug_rx_stats: rxdebug_rx_stats.o $(SAMPLELIBS)
72         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
73
74 rxdebug_supported_stats: rxdebug_supported_stats.o $(SAMPLELIBS)
75         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
76
77 rxdebug_version: rxdebug_version.o $(SAMPLELIBS)
78         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
79
80 rxstat_clear_peer: rxstat_clear_peer.o $(SAMPLELIBS)
81         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
82
83 rxstat_clear_process: rxstat_clear_process.o $(SAMPLELIBS)
84         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
85
86 rxstat_disable_peer: rxstat_disable_peer.o $(SAMPLELIBS)
87         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
88
89 rxstat_disable_process: rxstat_disable_process.o $(SAMPLELIBS)
90         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
91
92 rxstat_enable_peer: rxstat_enable_peer.o $(SAMPLELIBS)
93         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
94
95 rxstat_enable_process: rxstat_enable_process.o $(SAMPLELIBS)
96         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
97
98 rxstat_get_peer: rxstat_get_peer.o $(SAMPLELIBS)
99         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
100
101 rxstat_get_process: rxstat_get_process.o $(SAMPLELIBS)
102         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
103
104 rxstat_get_version: rxstat_get_version.o $(SAMPLELIBS)
105         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
106
107 rxstat_query_peer: rxstat_query_peer.o $(SAMPLELIBS)
108         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
109
110 rxstat_query_process: rxstat_query_process.o $(SAMPLELIBS)
111         $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MT_LIBS) $(XLIBS)
112
113 #
114 # Errors
115 #
116 rxstat_query_peer.o: rxstat_query_peer.c
117         $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
118
119 rxstat_query_process.o: rxstat_query_process.c
120         $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
121
122 #######################################################################
123 all test tests: $(SAMPLEPROGS)
124
125 install:
126
127 dest:
128
129 clean:
130         $(RM) -f *.o $(SAMPLEPROGS) core
131