Makefile.am 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ## Process this file with automake to produce Makefile.in.
  2. AUTOMAKE_OPTIONS = foreign dejagnu no-dist
  3. EXPECT = expect
  4. # Override default.
  5. DEJATOOL = boehm-gc
  6. CLEANFILES = *.exe core* *.log *.sum
  7. # We need more things in site.exp, but automake completely controls the
  8. # creation of that file; there's no way to append to it without messing up
  9. # the dependancy chains. So we overrule automake. This rule is exactly
  10. # what it would have generated, plus our own additions.
  11. site.exp: Makefile
  12. @echo 'Making a new site.exp file...'
  13. @echo '## these variables are automatically generated by make ##' >site.tmp
  14. @echo '# Do not edit here. If you wish to override these values' >>site.tmp
  15. @echo '# edit the last section' >>site.tmp
  16. @echo 'set srcdir $(srcdir)' >>site.tmp
  17. @echo "set objdir `pwd`" >>site.tmp
  18. @echo 'set build_alias "$(build_alias)"' >>site.tmp
  19. @echo 'set build_triplet $(build_triplet)' >>site.tmp
  20. @echo 'set host_alias "$(host_alias)"' >>site.tmp
  21. @echo 'set host_triplet $(host_triplet)' >>site.tmp
  22. @echo 'set target_alias "$(target_alias)"' >>site.tmp
  23. @echo 'set target_triplet $(target_triplet)' >>site.tmp
  24. @echo 'set threadcflags "$(THREADCFLAGS)"' >>site.tmp
  25. @echo 'set threadlibs "$(THREADLIBS)"' >>site.tmp
  26. @echo 'set extra_test_libs "$(EXTRA_TEST_LIBS)"' >>site.tmp
  27. @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp
  28. @test ! -f site.exp || \
  29. sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
  30. @-rm -f site.bak
  31. @test ! -f site.exp || mv site.exp site.bak
  32. @mv site.tmp site.exp