Build system: MT_LIBS includes XLIBS
[openafs.git] / src / libadmin / samples / Makefile.in
index 53b83f6..0893f89 100644 (file)
@@ -5,31 +5,11 @@
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
 
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-
-include ../../config/Makefile.${SYS_NAME}
-
-CC = ${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${MT_CFLAGS}
-
-
-########################################################################
-# build tests
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.pthread
+
+top_builddir=@TOP_OBJDIR@
 
 SAMPLEPROGS=\
        cm_client_config \
@@ -60,78 +40,110 @@ SAMPLELIBS =\
        ${TOP_LIBDIR}/libvosadmin.a \
        ${TOP_LIBDIR}/libbosadmin.a \
        ${TOP_LIBDIR}/libafsauthent.a \
-       ${TOP_LIBDIR}/libafsrpc.a
+       ${TOP_LIBDIR}/libafsrpc.a \
+       $(top_builddir)/src/util/liboafs_util.la \
+       $(top_builddir)/src/opr/liboafs_opr.la \
+       ${TOP_LIBDIR}/libafshcrypto_lwp.a
+
+all test tests: $(SAMPLEPROGS)
 
 cm_client_config: cm_client_config.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 cm_list_cells: cm_list_cells.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 cm_local_cell: cm_local_cell.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 cm_server_prefs: cm_server_prefs.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_basic_stats: rxdebug_basic_stats.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_conns: rxdebug_conns.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_peers: rxdebug_peers.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_rx_stats: rxdebug_rx_stats.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_supported_stats: rxdebug_supported_stats.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxdebug_version: rxdebug_version.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_clear_peer: rxstat_clear_peer.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_clear_process: rxstat_clear_process.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_disable_peer: rxstat_disable_peer.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_disable_process: rxstat_disable_process.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_enable_peer: rxstat_enable_peer.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_enable_process: rxstat_enable_process.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_get_peer: rxstat_get_peer.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_get_process: rxstat_get_process.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_get_version: rxstat_get_version.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_query_peer: rxstat_query_peer.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
 rxstat_query_process: rxstat_query_process.o $(SAMPLELIBS)
-       $(CC) $(LDFLAGS) -o $@ $@.o $(SAMPLELIBS) $(MTLIBS) $(XLIBS)
+       $(LT_LDRULE_static) $@.o $(SAMPLELIBS) $(LIB_roken) $(LIB_crypt) \
+               $(MT_LIBS)
 
-#######################################################################
-all test tests: $(SAMPLEPROGS)
+#
+# Errors
+#
+
+CFLAGS_rxstat_query_peer.o = @CFLAGS_NOERROR@
+CFLAGS_rxstat_query_process.o = @CFLAGS_NOERROR@
 
+#######################################################################
 install:
 
 dest:
 
 clean:
+       $(LT_CLEAN)
        $(RM) -f *.o $(SAMPLEPROGS) core