Darren Tucker | 316fac6 | 2014-06-17 23:06:07 +1000 | [diff] [blame^] | 1 | # $Id: Makefile.in,v 1.5 2014/06/17 13:06:08 dtucker Exp $ |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 2 | |
| 3 | sysconfdir=@sysconfdir@ |
| 4 | piddir=@piddir@ |
| 5 | srcdir=@srcdir@ |
| 6 | top_srcdir=@top_srcdir@ |
| 7 | |
| 8 | VPATH=@srcdir@ |
| 9 | CC=@CC@ |
| 10 | LD=@LD@ |
| 11 | CFLAGS=@CFLAGS@ |
| 12 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ |
Darren Tucker | f062569 | 2006-08-19 19:12:14 +1000 | [diff] [blame] | 13 | EXEEXT=@EXEEXT@ |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 14 | LIBCOMPAT=../libopenbsd-compat.a |
Darren Tucker | f062569 | 2006-08-19 19:12:14 +1000 | [diff] [blame] | 15 | LIBS=@LIBS@ |
| 16 | LDFLAGS=@LDFLAGS@ $(LIBCOMPAT) |
| 17 | |
| 18 | TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \ |
Darren Tucker | 316fac6 | 2014-06-17 23:06:07 +1000 | [diff] [blame^] | 19 | strtonumtest$(EXEEXT) opensslvertest$(EXEEXT) |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 20 | |
| 21 | all: t-exec ${OTHERTESTS} |
| 22 | |
Darren Tucker | 316fac6 | 2014-06-17 23:06:07 +1000 | [diff] [blame^] | 23 | %$(EXEEXT): %.c $(LIBCOMPAT) |
Darren Tucker | f062569 | 2006-08-19 19:12:14 +1000 | [diff] [blame] | 24 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS) |
| 25 | |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 26 | t-exec: $(TESTPROGS) |
| 27 | @echo running compat regress tests |
| 28 | @for TEST in ""$?; do \ |
| 29 | echo "run test $${TEST}" ... 1>&2; \ |
Darren Tucker | f062569 | 2006-08-19 19:12:14 +1000 | [diff] [blame] | 30 | ./$${TEST}$(EXEEXT) || exit $$? ; \ |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 31 | done |
| 32 | @echo finished compat regress tests |
| 33 | |
Darren Tucker | 4881c37 | 2006-02-19 22:50:20 +1100 | [diff] [blame] | 34 | clean: |
| 35 | rm -f *.o *.a core $(TESTPROGS) valid.out |
| 36 | |
| 37 | distclean: clean |
| 38 | rm -f Makefile *~ |