mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-28 13:02:09 +00:00
419aa01123
On platforms where closefrom returns void (eg glibc>=2.34) the prototype for closefrom in its compat tests would cause compile errors. Remove this and have the tests pull in the compat headers in the same way as the main code. bz#3336.
37 lines
875 B
Makefile
37 lines
875 B
Makefile
sysconfdir=@sysconfdir@
|
|
piddir=@piddir@
|
|
srcdir=@srcdir@
|
|
top_srcdir=@top_srcdir@
|
|
|
|
VPATH=@srcdir@
|
|
CC=@CC@
|
|
LD=@LD@
|
|
CFLAGS=@CFLAGS@
|
|
CPPFLAGS=-I. -I.. -I../.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. @CPPFLAGS@ @DEFS@
|
|
EXEEXT=@EXEEXT@
|
|
LIBCOMPAT=../libopenbsd-compat.a
|
|
LIBS=@LIBS@
|
|
LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
|
|
|
|
TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
|
|
strtonumtest$(EXEEXT) opensslvertest$(EXEEXT) utimensattest$(EXEEXT)
|
|
|
|
all: t-exec ${OTHERTESTS}
|
|
|
|
%$(EXEEXT): %.c $(LIBCOMPAT)
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
|
|
|
|
t-exec: $(TESTPROGS)
|
|
@echo running compat regress tests
|
|
@for TEST in ""$?; do \
|
|
echo "run test $${TEST}" ... 1>&2; \
|
|
./$${TEST}$(EXEEXT) || exit $$? ; \
|
|
done
|
|
@echo finished compat regress tests
|
|
|
|
clean:
|
|
rm -f *.o *.a core $(TESTPROGS) valid.out
|
|
|
|
distclean: clean
|
|
rm -f Makefile *~
|