From f0625699dff5e62e69b454acd9ea4c5bef7787b5 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 19 Aug 2006 19:12:14 +1000 Subject: - (dtucker) [openbsd-compat/regress/Makefile.in] Add $(EXEEXT) and add a single rule for the test progs. --- openbsd-compat/regress/Makefile.in | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'openbsd-compat') diff --git a/openbsd-compat/regress/Makefile.in b/openbsd-compat/regress/Makefile.in index 22dab2837..bcf214bd0 100644 --- a/openbsd-compat/regress/Makefile.in +++ b/openbsd-compat/regress/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.3 2006/08/18 10:56:19 dtucker Exp $ +# $Id: Makefile.in,v 1.4 2006/08/19 09:12:14 dtucker Exp $ sysconfdir=@sysconfdir@ piddir=@piddir@ @@ -10,19 +10,24 @@ CC=@CC@ LD=@LD@ CFLAGS=@CFLAGS@ CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ +EXEEXT=@EXEEXT@ +LIBCOMPAT=../libopenbsd-compat.a LIBS=@LIBS@ -LDFLAGS=-L.. -lopenbsd-compat @LDFLAGS@ +LDFLAGS=@LDFLAGS@ $(LIBCOMPAT) -LIBCOMPAT=../libopenbsd-compat.a -TESTPROGS=closefromtest strtonumtest strduptest snprintftest +TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \ + strtonumtest$(EXEEXT) all: t-exec ${OTHERTESTS} +%$(EXEEXT): %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS) + t-exec: $(TESTPROGS) @echo running compat regress tests @for TEST in ""$?; do \ echo "run test $${TEST}" ... 1>&2; \ - ./$${TEST} || exit $$? ; \ + ./$${TEST}$(EXEEXT) || exit $$? ; \ done @echo finished compat regress tests -- cgit v1.2.3