TREELANGSEDFLAGS = -n
# back end compiler libraries etc
-TREE_BE_LIBS = $(BACKEND) $(LIBIBERTY) $(INTLLIBS) $(LIBS) $(LIBDEPS)
+TREE_BE_LIBS = $(BACKEND) $(LIBIBERTY) $(INTLLIBS) $(LIBS) $(LIBDEPS)
GCC_EXTRAS = -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include
# ./xgcc is the just built compiler. See GCC_FOR_TARGET in the GCC Makefile.in.
#no -Wtraditional warnings, allow long long
treelang-warn = $(LOOSE_WARN) -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations
+# bison emits some unused static arrays (yytoknum)
+treelang/parse.o-warn = -Wno-error
#\f
# Define the names for selecting treelang in LANGUAGES.
# no preprocessor
-# core compiler
+# core compiler
tree1$(exeext): treelang/tree1.o treelang/treetree.o treelang/lex.o treelang/parse.o\
$(TREE_BE_LIBS) c-convert.o c-typeck.o c-common.o c-decl.o attribs.o
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
# Build hooks:
treelang.all.build: treelang
-treelang.all.cross:
+treelang.all.cross:
_error_not_here_yet - havent even thought about it - it may even work
treelang.start.encap:
-treelang.rest.encap:
+treelang.rest.encap:
.phony:treelang.info
treelang.info: $(srcdir)/treelang/treelang.info
# Nothing to do here.
treelang.install-normal: treelang.install.common
-# Install
+# Install
.phony:treelang.install.common
.phony:treelang.install
treelang.install treelang.install.common treelang.install-common: treelang.install.common.done
-treelang.install.common.done: installdirs treelang.done
+treelang.install.common.done: installdirs treelang.done
for name in $(TREE_EXES); \
do \
if [ -f $$name ] ; then \
else : ; fi; \
else : ; fi
-treelang.install-man:
+treelang.install-man:
treelang.uninstall:
for name in $(TREE_EXES); \
# A lot of the ancillary files are deleted by the main makefile.
# We just have to delete files specific to us.
-treelang.mostlyclean:
+treelang.mostlyclean:
for name in $(TREE_EXES); \
do \
echo deleting $$name; \
treelang.clean: treelang.mostlyclean
treelang.distclean: treelang.clean
- -rm -f treelang/config.status
+ -rm -f treelang/config.status
-rm -f treelang/*.output
treelang.extraclean: treelang.distclean
# not here yet sorry not sure if this is needed or not???
# test hook
-# the other languages are hard coded in the main makefile.in - that seems to be wrong
+# the other languages are hard coded in the main makefile.in - that seems to be wrong
check-treelang: treelang.check
TESTSUITEDIR = testsuite
treelang.check: $(TESTSUITEDIR)/site.exp
- -mkdir testsuite/treelang
+ -mkdir testsuite/treelang
# these three files are empty and it seems diff has trouble generating
# patch files for new empty files as required for cvs.
# copy the output files from the current test to source ie say the new results are OK
treelang.check.fix: force
- srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ;
+ srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ;
-cp testsuite/treelang/*.out* t
-cp testsuite/treelang/*runpgm* t
-rm -f t/*nofilename