Remove $(TREECC_SRCOUT), containing the source files generated by treecc, from
the libILCLang_a_SOURCES variable and add them to nodist_libILCLang_a_SOURCES
instead. The files are being generated, so they must not be distributed with
the packet. Consequently, $(TREECC_OUTPUT) is also added to BUILD_SOURCES.

Signed-off-by: Robert Schwebel <[EMAIL PROTECTED]>

 cscc/c/Makefile.am |   29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

Index: cscc/c/Makefile.am
===================================================================
--- cscc/c/Makefile.am.orig
+++ cscc/c/Makefile.am
@@ -14,7 +14,27 @@ TREECC_INPUTS = c_ainit.tc \
 
 TREECC_SRCOUT = c_nodes.c c_semantics.c c_name.c
 
-TREECC_OUTPUT = $(TREECC_SRCOUT) c_defs.h
+TREECC_UNUSED_SRCOUT = \
+       cg_lvalue.c \
+       jv_assign.c \
+       cg_logical.c \
+       cg_ainit.c \
+       cg_attrs.c \
+       cg_relop.c \
+       cg_decls.c \
+       cg_arith.c \
+       cg_cast.c \
+       jv_arith.c \
+       cg_const.c \
+       cg_assign.c \
+       cg_nodes.h \
+       jv_cast.c \
+       cg_nodes.c \
+       jv_nodes.c \
+       cg_stmt.c \
+       cg_misc.c
+
+TREECC_OUTPUT = $(TREECC_SRCOUT) $(TREECC_UNUSED_SRCOUT) c_defs.h
 
 EXTRA_DIST = $(TREECC_INPUTS)
 
@@ -36,8 +56,9 @@ libILCLang_a_SOURCES = c_coerce.c \
                                           c_scope.h \
                                           c_typeout.c \
                                           c_types.c \
-                                          c_types.h \
-                                          $(TREECC_SRCOUT)
+                                          c_types.h
+
+nodist_libILCLang_a_SOURCES = $(TREECC_SRCOUT)
 
 AM_YFLAGS = -d
 
@@ -45,7 +66,7 @@ AM_CFLAGS = -I$(top_srcdir) -I$(top_buil
 
 STAMP = stamp-treecc
 
-BUILT_SOURCES = $(STAMP)
+BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT)
 
 libILCLang_a_DEPENDENCIES = $(STAMP)
 

--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers

Reply via email to