2006-02-19 11:50:20 +00:00
|
|
|
sysconfdir=@sysconfdir@
|
|
|
|
piddir=@piddir@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
top_srcdir=@top_srcdir@
|
|
|
|
|
|
|
|
VPATH=@srcdir@
|
|
|
|
CC=@CC@
|
|
|
|
LD=@LD@
|
|
|
|
CFLAGS=@CFLAGS@
|
|
|
|
CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
|
2006-08-19 09:12:14 +00:00
|
|
|
EXEEXT=@EXEEXT@
|
|
|
|
LIBCOMPAT=../libopenbsd-compat.a
|
2006-02-19 11:50:20 +00:00
|
|
|
LIBS=@LIBS@
|
2006-08-19 09:12:14 +00:00
|
|
|
LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
|
2006-02-19 11:50:20 +00:00
|
|
|
|
2006-08-19 09:12:14 +00:00
|
|
|
TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
|
2019-01-17 23:11:42 +00:00
|
|
|
strtonumtest$(EXEEXT) opensslvertest$(EXEEXT) utimensattest$(EXEEXT)
|
2006-02-19 11:50:20 +00:00
|
|
|
|
|
|
|
all: t-exec ${OTHERTESTS}
|
|
|
|
|
2014-06-17 13:06:07 +00:00
|
|
|
%$(EXEEXT): %.c $(LIBCOMPAT)
|
2006-08-19 09:12:14 +00:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
|
|
|
|
|
2006-02-19 11:50:20 +00:00
|
|
|
t-exec: $(TESTPROGS)
|
|
|
|
@echo running compat regress tests
|
|
|
|
@for TEST in ""$?; do \
|
|
|
|
echo "run test $${TEST}" ... 1>&2; \
|
2006-08-19 09:12:14 +00:00
|
|
|
./$${TEST}$(EXEEXT) || exit $$? ; \
|
2006-02-19 11:50:20 +00:00
|
|
|
done
|
|
|
|
@echo finished compat regress tests
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a core $(TESTPROGS) valid.out
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile *~
|