tests: Modernize writekeyfile.c
[openafs.git] / tests / auth / Makefile.in
index 4cdb639..aa89f75 100644 (file)
@@ -4,9 +4,9 @@ abs_top_builddir=@abs_top_builddir@
 include @TOP_OBJDIR@/src/config/Makefile.config
 include @TOP_OBJDIR@/src/config/Makefile.pthread
 
-TESTS = authcon-t superuser-t keys-t realms-t
+TESTS = authcon-t superuser-t keys-t realms-t writekeyfile
 
-MODULE_CFLAGS=-I$(srcdir)/../.. -I$(srcdir)/../common/
+MODULE_CFLAGS=-I$(TOP_OBJDIR) -I$(srcdir)/../common/
 
 all check test tests: $(TESTS)
 
@@ -15,25 +15,26 @@ MODULE_LIBS =       ../tap/libtap.a \
                $(LIB_rfc3961) $(LIB_roken) \
                $(XLIBS)
 
-authcon-t: authcon-t.o ../common/config.o
-       $(LT_LDRULE_static) authcon-t.o ../common/config.o \
+authcon-t: authcon-t.o ../common/config.o ../common/network.o
+       $(LT_LDRULE_static) authcon-t.o ../common/config.o ../common/network.o \
                $(MODULE_LIBS)
 
 superuser-t: superuser-t.o ../common/config.o ../common/rxkad.o \
-            test.cs.o test.ss.o test.xdr.o
+            test.cs.o test.ss.o test.xdr.o ../common/network.o \
+            ../common/misc.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)
+               test.cs.o test.ss.o test.xdr.o ../common/network.o \
+               ../common/misc.o $(MODULE_LIBS)
 
-keys-t: keys-t.o ../common/config.o
-       $(LT_LDRULE_static) keys-t.o ../common/config.o $(MODULE_LIBS)
+keys-t: keys-t.o ../common/config.o ../common/network.o
+       $(LT_LDRULE_static) keys-t.o ../common/config.o ../common/network.o $(MODULE_LIBS)
 
-realms-t: realms-t.o ../common/config.o
-       $(LT_LDRULE_static) realms-t.o ../common/config.o $(MODULE_LIBS)
+realms-t: realms-t.o ../common/config.o ../common/network.o
+       $(LT_LDRULE_static) realms-t.o ../common/config.o ../common/network.o $(MODULE_LIBS)
 
-writekeyfile: writekeyfile.o
-       $(LT_LDRULE_static) writekeyfile.o $(MODULE_LIBS)
+writekeyfile: writekeyfile.o ../common/config.o
+       $(LT_LDRULE_static) writekeyfile.o ../common/config.o $(MODULE_LIBS)
 
 test.cs.c: test.xg
        $(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
@@ -52,4 +53,4 @@ superuser-t.o: test.h
 clean:
        $(LT_CLEAN)
        rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
-               writekeyfile $(TESTS)
+               $(TESTS)