Makefile.in 849 B

12345678910111213141516171819202122232425262728293031323334353637
  1. sysconfdir=@sysconfdir@
  2. piddir=@piddir@
  3. srcdir=@srcdir@
  4. top_srcdir=@top_srcdir@
  5. VPATH=@srcdir@
  6. CC=@CC@
  7. LD=@LD@
  8. CFLAGS=@CFLAGS@
  9. CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
  10. EXEEXT=@EXEEXT@
  11. LIBCOMPAT=../libopenbsd-compat.a
  12. LIBS=@LIBS@
  13. LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
  14. TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
  15. strtonumtest$(EXEEXT) opensslvertest$(EXEEXT) utimensattest$(EXEEXT)
  16. all: t-exec ${OTHERTESTS}
  17. %$(EXEEXT): %.c $(LIBCOMPAT)
  18. $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
  19. t-exec: $(TESTPROGS)
  20. @echo running compat regress tests
  21. @for TEST in ""$?; do \
  22. echo "run test $${TEST}" ... 1>&2; \
  23. ./$${TEST}$(EXEEXT) || exit $$? ; \
  24. done
  25. @echo finished compat regress tests
  26. clean:
  27. rm -f *.o *.a core $(TESTPROGS) valid.out
  28. distclean: clean
  29. rm -f Makefile *~