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@
|
2021-08-10 23:21:09 +00:00
|
|
|
CPPFLAGS=-I. -I.. -I../.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. @CPPFLAGS@ @DEFS@
|
2006-08-19 09:12:14 +00:00
|
|
|
EXEEXT=@EXEEXT@
|
|
|
|
LIBCOMPAT=../libopenbsd-compat.a
|
2022-11-02 21:14:05 +00:00
|
|
|
LIBS=@LIBS@ @CHANNELLIBS@
|
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}
|
|
|
|
|
2022-11-03 10:44:23 +00:00
|
|
|
.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 *~
|