summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/misc/ChangeLog4
-rw-r--r--src/tests/misc/Makefile.in8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/misc/ChangeLog b/src/tests/misc/ChangeLog
index 3908649cf9..559980a1f9 100644
--- a/src/tests/misc/ChangeLog
+++ b/src/tests/misc/ChangeLog
@@ -1,5 +1,9 @@
2005-11-28 Ken Raeburn <raeburn@mit.edu>
+ * Makefile.in (test_getpw.$(OBJEXT)): New intermediate target.
+ (test_getpw): Don't build directly from source.
+ (test_getsockname): New target.
+
* test_getsockname.c: Include autoconf.h.
(main): Fix type of variable 'i' used for size of socket address.
diff --git a/src/tests/misc/Makefile.in b/src/tests/misc/Makefile.in
index 2dd2153d35..3f5cf03a24 100644
--- a/src/tests/misc/Makefile.in
+++ b/src/tests/misc/Makefile.in
@@ -14,8 +14,12 @@ all:: test_getpw
check:: test_getpw
$(RUN_SETUP) ./test_getpw
-test_getpw: $(srcdir)/../misc/test_getpw.c ../../include/krb5/autoconf.h $(SUPPORT_DEPLIB)
- $(CC_LINK) $(ALL_CFLAGS) -o test_getpw $(srcdir)/../misc/test_getpw.c $(SUPPORT_LIB)
+test_getpw: $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_DEPLIB)
+ $(CC_LINK) $(ALL_CFLAGS) -o test_getpw $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_LIB)
+test_getpw.$(OBJEXT): $(srcdir)/../misc/test_getpw.c ../../include/krb5/autoconf.h
+
+test_getsockname: $(OUTPRE)test_getsockname.$(OBJEXT)
+ $(CC_LINK) $(ALL_CFLAGS) -o test_getsockname $(OUTPRE)test_getsockname.$(OBJEXT) $(LIBS)
install::