• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# $Id: Makefile.in,v 1.5 2014/06/17 13:06:08 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) opensslvertest$(EXEEXT)
20
21all:	t-exec ${OTHERTESTS}
22
23%$(EXEEXT):	%.c $(LIBCOMPAT)
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