1sysconfdir=@sysconfdir@ 2piddir=@piddir@ 3srcdir=@srcdir@ 4top_srcdir=@top_srcdir@ 5 6VPATH=@srcdir@ 7CC=@CC@ 8LD=@LD@ 9CFLAGS=@CFLAGS@ 10CPPFLAGS=-I. -I.. -I../.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. @CPPFLAGS@ @DEFS@ 11EXEEXT=@EXEEXT@ 12LIBCOMPAT=../libopenbsd-compat.a 13LIBSSH=../../libssh.a 14LIBS=@LIBS@ @CHANNELLIBS@ 15LDFLAGS=@LDFLAGS@ $(LIBCOMPAT) 16 17TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \ 18 strtonumtest$(EXEEXT) opensslvertest$(EXEEXT) utimensattest$(EXEEXT) 19 20all: t-exec ${OTHERTESTS} 21 22.c: $(LIBCOMPAT) $(LIBSSH) 23 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBSSH) $(LIBS) 24 25t-exec: $(TESTPROGS) 26 @echo running compat regress tests 27 @for TEST in ""$?; do \ 28 echo "run test $${TEST}" ... 1>&2; \ 29 ./$${TEST}$(EXEEXT) || exit $$? ; \ 30 done 31 @echo finished compat regress tests 32 33clean: 34 rm -f *.o *.a core $(TESTPROGS) valid.out 35 36distclean: clean 37 rm -f Makefile *~ 38