tests: modernize tests to compile in warning-as-errorland
[openafs.git] / tests / auth / Makefile.in
index 016a781..fe669c2 100644 (file)
@@ -4,29 +4,39 @@ abs_top_builddir=@abs_top_builddir@
 include @TOP_OBJDIR@/src/config/Makefile.config
 include @TOP_OBJDIR@/src/config/Makefile.pthread
 
-TESTS = superuser-t keys-t
+TESTS = authcon-t superuser-t keys-t realms-t
 
-MODULE_CFLAGS=-I$(srcdir)/..
+MODULE_CFLAGS=-I$(srcdir)/../.. -I$(srcdir)/../common/
 
 all check test tests: $(TESTS)
 
 MODULE_LIBS =  ../tap/libtap.a \
                $(abs_top_builddir)/lib/libafsauthent.a \
-               $(abs_top_builddir)/lib/librxgk.a \
                $(abs_top_builddir)/lib/libafsrpc.a \
                $(abs_top_builddir)/lib/libafshcrypto.a \
+               $(abs_top_builddir)/lib/liboafs_opr.la \
                $(LIB_rfc3961) $(LIB_roken) -lafsutil\
                $(XLIBS)
 
-superuser-t: superuser-t.o test.cs.o test.ss.o test.xdr.o
-       $(AFS_LDRULE) superuser-t.o test.cs.o test.ss.o test.xdr.o \
+authcon-t: authcon-t.o ../common/config.o
+       $(LT_LDRULE_static) authcon-t.o ../common/config.o \
                $(MODULE_LIBS)
 
-keys-t: keys-t.o
-       $(AFS_LDRULE) keys-t.o $(MODULE_LIBS)
+superuser-t: superuser-t.o ../common/config.o ../common/rxkad.o \
+            test.cs.o test.ss.o test.xdr.o
+       $(LT_LDRULE_static) superuser-t.o ../common/config.o
+               ../common/rxkad.o ../common/servers.o \
+               test.cs.o test.ss.o test.xdr.o \
+               $(MODULE_LIBS)
+
+keys-t: keys-t.o ../common/config.o
+       $(LT_LDRULE_static) keys-t.o ../common/config.o $(MODULE_LIBS)
+
+realms-t: realms-t.o ../common/config.o
+       $(LT_LDRULE_static) realms-t.o ../common/config.o $(MODULE_LIBS)
 
 writekeyfile: writekeyfile.o
-       $(AFS_LDRULE) writekeyfile.o $(MODULE_LIBS)
+       $(LT_LDRULE_static) writekeyfile.o $(MODULE_LIBS)
 
 test.cs.c: test.xg
        $(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
@@ -43,5 +53,6 @@ test.h: test.xg
 superuser-t.o: test.h
 
 clean:
+       $(LT_CLEAN)
        rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
-               writekeyfile superuser-t keys-t
+               writekeyfile $(TESTS)