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