Simplify the compilation commands for config/vxworks.c
diff mbox series

Message ID
State New
Headers show
  • Simplify the compilation commands for config/vxworks.c
Related show

Commit Message

Olivier Hainque Dec. 13, 2019, 4:19 p.m. UTC
The patch by Joel setting up TARGET_C_PREINCLUDE exposed a possibility
to simplify/robustify the compilation commands use for another source in
the t-vxworks Makefile fragment.

We now leverage $(COMPILE) and $(POSTCOMPILE) instead of replicating
them manually for vxworks.c.

Tested in accordance with the description in

Committing to mainline.


2019-12-13  Olivier Hainque  <>

    	* config/t-vxworks: Rework the vxworks.o compilation
    	rules to use $(COMPILE).
gcc/config/t-vxworks | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff mbox series

diff --git a/gcc/config/t-vxworks b/gcc/config/t-vxworks
index 69b3a2e3199..ce30338ed13 100644
--- a/gcc/config/t-vxworks
+++ b/gcc/config/t-vxworks
@@ -16,9 +16,9 @@ 
 # along with GCC; see the file COPYING3.  If not see
 # <>.
-vxworks.o: $(srcdir)/config/vxworks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-	$(TARGET_H) output.h $(TM_H)
+vxworks.o: $(srcdir)/config/vxworks.c
+	$(COMPILE) $<
 vxworks-c.o: $(srcdir)/config/vxworks-c.c
 	$(COMPILE) $<