mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-24 10:52:05 +00:00
f0625699df
single rule for the test progs.
39 lines
849 B
Makefile
39 lines
849 B
Makefile
# $Id: Makefile.in,v 1.4 2006/08/19 09:12:14 dtucker Exp $
|
|
|
|
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@
|
|
EXEEXT=@EXEEXT@
|
|
LIBCOMPAT=../libopenbsd-compat.a
|
|
LIBS=@LIBS@
|
|
LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
|
|
|
|
TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
|
|
strtonumtest$(EXEEXT)
|
|
|
|
all: t-exec ${OTHERTESTS}
|
|
|
|
%$(EXEEXT): %.c
|
|
$(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 *~
|