Add missing source files to the libILCodeGen_a_SOURCES variable
(cg_defs.h and cg_output.h). If you don't do that, these files are not
distributed on 'make dist' and thus missing in the final package.

Additionally, remove $(TREECC_SRCOUT), containing the source files
generated by treecc, from the LIBILCodeGen_a_SOURCES variable and add
them to nodist_libILCodeGen_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]>

 codegen/Makefile.am |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Index: codegen/Makefile.am
===================================================================
--- codegen/Makefile.am.orig
+++ codegen/Makefile.am
@@ -55,6 +55,7 @@ EXTRA_DIST = $(TREECC_INPUTS)
 
 libILCodeGen_a_SOURCES = cg_coerce.c \
                                                 cg_coerce.h \
+                                                cg_defs.h \
                                                 cg_gen.c \
                                                 cg_gen.h \
                                                 cg_interface.c \
@@ -62,6 +63,7 @@ libILCodeGen_a_SOURCES = cg_coerce.c \
                                                 cg_nodemap.c \
                                                 cg_nodemap.h \
                                                 cg_optable.c \
+                                                cg_output.h \
                                                 cg_output.c \
                                                 cg_rbtree.c \
                                                 cg_rbtree.h \
@@ -74,14 +76,16 @@ libILCodeGen_a_SOURCES = cg_coerce.c \
                                                 cg_varusage.c \
                                                 cg_varusage.h \
                                                 jv_output.c \
-                                                jv_output.h \
-                                                $(TREECC_SRCOUT)
+                                                jv_output.h
+
+nodist_libILCodeGen_a_SOURCES = \
+       $(TREECC_SRCOUT)
 
 AM_CFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/include
 
 STAMP = stamp-treecc
 
-BUILT_SOURCES = $(STAMP)
+BUILT_SOURCES = $(STAMP) $(TREECC_OUTPUT)
 
 libILCodeGen_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