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