Remove $(TREECC_SRCOUT), containing the source files generated by
treecc, from the libILJava_a_SOURCES variable and add them to
nodist_libILJava_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/java/Makefile.am |   30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)

Index: cscc/java/Makefile.am
===================================================================
--- cscc/java/Makefile.am.orig
+++ cscc/java/Makefile.am
@@ -15,7 +15,27 @@ TREECC_INPUTS = java_defs.tc \
 
 TREECC_SRCOUT = java_nodes.c java_semantics.c
 
-TREECC_OUTPUT = $(TREECC_SRCOUT) java_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) java_defs.h
 
 EXTRA_DIST = $(TREECC_INPUTS)
 
@@ -27,9 +47,9 @@ libILJava_a_SOURCES = java_internal.h \
                                          java_lookup.c \
                                          java_rename.h \
                                          java_semvalue.c \
-                                         java_semvalue.h \
-                                         $(TREECC_SRCOUT)
-                                                       
+                                         java_semvalue.h
+
+nodist_libILJava_a_SOURCES = $(TREECC_SRCOUT)
 
 AM_YFLAGS = -d
 
@@ -37,7 +57,7 @@ AM_CFLAGS = -I$(top_srcdir) -I$(top_buil
 
 STAMP = stamp-treecc
 
-BUILT_SOURCES = $(STAMP)
+BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT)
 
 libILJava_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