summaryrefslogtreecommitdiff
path: root/openbsd-compat/regress/Makefile.in
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-19 19:12:14 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-08-19 19:12:14 +1000
commitf0625699dff5e62e69b454acd9ea4c5bef7787b5 (patch)
tree943fab4975e1547acc641234dd4dc94f097cb033 /openbsd-compat/regress/Makefile.in
parentdeccaa7d0f8e8c8cd8f1f9ebb7d02fe2f456a760 (diff)
- (dtucker) [openbsd-compat/regress/Makefile.in] Add $(EXEEXT) and add a
single rule for the test progs.
Diffstat (limited to 'openbsd-compat/regress/Makefile.in')
-rw-r--r--openbsd-compat/regress/Makefile.in15
1 files changed, 10 insertions, 5 deletions
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 @@
1# $Id: Makefile.in,v 1.3 2006/08/18 10:56:19 dtucker Exp $ 1# $Id: Makefile.in,v 1.4 2006/08/19 09:12:14 dtucker Exp $
2 2
3sysconfdir=@sysconfdir@ 3sysconfdir=@sysconfdir@
4piddir=@piddir@ 4piddir=@piddir@
@@ -10,19 +10,24 @@ CC=@CC@
10LD=@LD@ 10LD=@LD@
11CFLAGS=@CFLAGS@ 11CFLAGS=@CFLAGS@
12CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ 12CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
13EXEEXT=@EXEEXT@
14LIBCOMPAT=../libopenbsd-compat.a
13LIBS=@LIBS@ 15LIBS=@LIBS@
14LDFLAGS=-L.. -lopenbsd-compat @LDFLAGS@ 16LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
15 17
16LIBCOMPAT=../libopenbsd-compat.a 18TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
17TESTPROGS=closefromtest strtonumtest strduptest snprintftest 19 strtonumtest$(EXEEXT)
18 20
19all: t-exec ${OTHERTESTS} 21all: t-exec ${OTHERTESTS}
20 22
23%$(EXEEXT): %.c
24 $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
25
21t-exec: $(TESTPROGS) 26t-exec: $(TESTPROGS)
22 @echo running compat regress tests 27 @echo running compat regress tests
23 @for TEST in ""$?; do \ 28 @for TEST in ""$?; do \
24 echo "run test $${TEST}" ... 1>&2; \ 29 echo "run test $${TEST}" ... 1>&2; \
25 ./$${TEST} || exit $$? ; \ 30 ./$${TEST}$(EXEEXT) || exit $$? ; \
26 done 31 done
27 @echo finished compat regress tests 32 @echo finished compat regress tests
28 33