$(CC_LINK) -o destroy-test destroy-test.o \
$(KADMCLNT_LIBS) $(KRB5_BASE_LIBS)
-client-handle-test: handle-test.o $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS)
- $(CC_LINK) -o client-handle-test handle-test.o \
+client-handle-test: client-handle-test.o $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS)
+ $(CC_LINK) -o client-handle-test client-handle-test.o \
$(KADMCLNT_LIBS) $(KRB5_BASE_LIBS)
+client-handle-test.o: handle-test.c
+ $(CC) $(ALL_CFLAGS) -DCLIENT_TEST -o client-handle-test.o -c $(srcdir)/handle-test.c
+
client-iter-test: iter-test.o $(KADMLCNT_DEPLIBS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o client-iter-test iter-test.o \
$(KADMCLNT_LIBS) $(KRB5_BASE_LIBS)
clean::
$(RM) init-test client_init.o init-test.o
$(RM) destroy-test destroy-test.o
- $(RM) client-handle-test handle-test.o
+ $(RM) client-handle-test handle-test.o client-handle-test.o
$(RM) client-iter-test iter-test.o
$(RM) randkey-test randkey-test.o
$(RM) server-handle-test handle-test.o
#include <sys/file.h>
#include <unistd.h>
#include <netinet/in.h>
+#ifdef CLIENT_TEST
#include <kadm5/client_internal.h>
-
+#else
+#include <kadm5/server_internal.h>
+#include <kadm5/admin.h>
+#endif
int main(int argc, char *argv[])
{