xref: /openssh-portable/openbsd-compat/regress/Makefile.in (revision c889ffdb)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1# $Id: Makefile.in,v 1.2 2006/08/17 09:40:35 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@
13LIBS=@LIBS@
14LDFLAGS=-L.. -lopenbsd-compat @LDFLAGS@
15
16LIBCOMPAT=../libopenbsd-compat.a
17TESTPROGS=closefromtest strtonumtest strduptest snprintftest
18
19all:	t-exec ${OTHERTESTS}
20
21t-exec:	$(TESTPROGS)
22	@echo running compat regress tests
23	@for TEST in ""$?; do \
24		echo "run test $${TEST}" ... 1>&2; \
25		./$${TEST} || exit $$? ; \
26	done
27	@echo finished compat regress tests
28
29strtonumtest: strtonumtest.c $(LIBCOMPAT)
30	$(CC) $(CFLAGS) $(CPPFLAGS) -o strtonumtest $< $(LDFLAGS)
31
32strduptest: strduptest.c $(LIBCOMPAT)
33	$(CC) $(CFLAGS) $(CPPFLAGS) -o strduptest $< $(LDFLAGS)
34
35closefromtest: closefromtest.c $(LIBCOMPAT)
36	$(CC) $(CFLAGS) $(CPPFLAGS) -o closefromtest $< $(LDFLAGS)
37
38clean:
39	rm -f *.o *.a core $(TESTPROGS) valid.out
40
41distclean: clean
42	rm -f Makefile *~
43

Last Index update Mon Apr 19 00:01:11 EDT 2021