xref: /freebsd/crypto/openssh/openbsd-compat/regress/Makefile.in (revision f677a9e2672665f4eb3dd4111c07ee8f1f954262)
1# $Id: Makefile.in,v 1.4 2006/08/19 09:12:14 dtucker Exp $
2
3sysconfdir=@sysconfdir@
4piddir=@piddir@
5srcdir=@srcdir@
6top_srcdir=@top_srcdir@
7
8VPATH=@srcdir@
9CC=@CC@
10LD=@LD@
11CFLAGS=@CFLAGS@
12CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
13EXEEXT=@EXEEXT@
14LIBCOMPAT=../libopenbsd-compat.a
15LIBS=@LIBS@
16LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
17
18TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
19	strtonumtest$(EXEEXT)
20
21all:	t-exec ${OTHERTESTS}
22
23%$(EXEEXT):	%.c
24	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
25
26t-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
34clean:
35	rm -f *.o *.a core $(TESTPROGS) valid.out
36
37distclean: clean
38	rm -f Makefile *~
39