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