sim: sh: move some generated source files to built sources
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Jan 2023 03:48:13 +0000 (22:48 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 3 Jan 2023 03:48:13 +0000 (22:48 -0500)
This should have been part of the previous commit 80636a54bcfa2bca3dc8f
("sim: build: move generated headers to built sources"), but they were
missed because they're .c files effectively treated as .h files.

sim/Makefile.in
sim/sh/local.mk

index 204a2c563f19a58ce35947544d3aa8fbf9eefb82..df5d396e4bc715b243f91f43949d25d0cf26ca58 100644 (file)
@@ -261,11 +261,15 @@ TESTS = testsuite/common/bits32m0$(EXEEXT) \
 @SIM_ENABLE_ARCH_rl78_TRUE@am__append_91 = rl78/run
 @SIM_ENABLE_ARCH_rx_TRUE@am__append_92 = rx/run
 @SIM_ENABLE_ARCH_sh_TRUE@am__append_93 = sh/run
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_94 = $(sh_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_95 = sh/gencode
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_96 = $(sh_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_97 = v850/run
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_98 = \
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_94 = \
+@SIM_ENABLE_ARCH_sh_TRUE@      sh/code.c \
+@SIM_ENABLE_ARCH_sh_TRUE@      sh/ppi.c
+
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_95 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_96 = sh/gencode
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_97 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_98 = v850/run
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_99 = \
 @SIM_ENABLE_ARCH_v850_TRUE@    v850/icache.h \
 @SIM_ENABLE_ARCH_v850_TRUE@    v850/idecode.h \
 @SIM_ENABLE_ARCH_v850_TRUE@    v850/semantics.h \
@@ -274,8 +278,8 @@ TESTS = testsuite/common/bits32m0$(EXEEXT) \
 @SIM_ENABLE_ARCH_v850_TRUE@    v850/itable.h \
 @SIM_ENABLE_ARCH_v850_TRUE@    v850/engine.h
 
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_99 = $(v850_BUILD_OUTPUTS)
 @SIM_ENABLE_ARCH_v850_TRUE@am__append_100 = $(v850_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_101 = $(v850_BUILD_OUTPUTS)
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
@@ -1258,7 +1262,8 @@ noinst_LIBRARIES = common/libcommon.a $(am__append_5)
 BUILT_SOURCES = $(am__append_14) $(am__append_18) $(am__append_25) \
        $(am__append_29) $(am__append_38) $(am__append_44) \
        $(am__append_49) $(am__append_58) $(am__append_70) \
-       $(am__append_79) $(am__append_85) $(am__append_98)
+       $(am__append_79) $(am__append_85) $(am__append_94) \
+       $(am__append_99)
 CLEANFILES = common/version.c common/version.c-stamp \
        testsuite/common/bits-gen testsuite/common/bits32m0.c \
        testsuite/common/bits32m31.c testsuite/common/bits64m0.c \
@@ -1271,7 +1276,7 @@ MOSTLYCLEANFILES = core $(common_HW_CONFIG_H_TARGETS) $(patsubst \
        $(am__append_40) $(am__append_46) $(am__append_51) \
        $(am__append_55) $(am__append_60) $(am__append_65) \
        $(am__append_75) $(am__append_81) $(am__append_87) \
-       $(am__append_96) $(am__append_100)
+       $(am__append_97) $(am__append_101)
 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
 AM_CPPFLAGS = $(INCGNU) -I$(srcroot)/include -I../bfd -I.. \
        $(SIM_HW_CFLAGS) $(SIM_INLINE) -I$(srcdir)/common \
@@ -1286,7 +1291,7 @@ SIM_ALL_RECURSIVE_DEPS = common/libcommon.a \
        $(am__append_39) $(am__append_45) $(am__append_50) \
        $(am__append_53) $(am__append_59) $(am__append_63) \
        $(am__append_74) $(am__append_80) $(am__append_86) \
-       $(am__append_94) $(am__append_99)
+       $(am__append_95) $(am__append_100)
 SIM_INSTALL_DATA_LOCAL_DEPS = 
 SIM_INSTALL_EXEC_LOCAL_DEPS = $(am__append_34)
 SIM_UNINSTALL_LOCAL_DEPS = $(am__append_35)
@@ -1849,8 +1854,6 @@ testsuite_common_CPPFLAGS = \
 
 @SIM_ENABLE_ARCH_sh_TRUE@sh_BUILD_OUTPUTS = \
 @SIM_ENABLE_ARCH_sh_TRUE@      sh/gencode$(EXEEXT) \
-@SIM_ENABLE_ARCH_sh_TRUE@      sh/code.c \
-@SIM_ENABLE_ARCH_sh_TRUE@      sh/ppi.c \
 @SIM_ENABLE_ARCH_sh_TRUE@      sh/table.c
 
 @SIM_ENABLE_ARCH_sh_TRUE@sh_gencode_SOURCES = sh/gencode.c
index 2dc63323e040c19de8028ea2d385351905630bea..8c2ce0da1499a1765af2ed4027b2a033a39fbff2 100644 (file)
 
 noinst_PROGRAMS += %D%/run
 
+## List all generated headers to help Automake dependency tracking.
+## NB: These .c files are only included by other .c files.  They are not
+## compiled individually.  Hence they're really "header" files.
+BUILT_SOURCES += \
+       %D%/code.c \
+       %D%/ppi.c
 %C%_BUILD_OUTPUTS = \
        %D%/gencode$(EXEEXT) \
-       %D%/code.c \
-       %D%/ppi.c \
        %D%/table.c
 
 ## This makes sure build tools are available before building the arch-subdirs.