From 34bf86f1d603185d74e511d7370fe8b1cc5ad438 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Fri, 21 Apr 2000 22:45:19 +0000 Subject: [PATCH] Add rule for converting `.st' to `.o'. RTEMS needs C++ constructors to register sequencer commands and programs so the output of snc has to be compiled with C++. --- configure/os/CONFIG.Common.RTEMS | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure/os/CONFIG.Common.RTEMS b/configure/os/CONFIG.Common.RTEMS index dbe624509..5704d0560 100644 --- a/configure/os/CONFIG.Common.RTEMS +++ b/configure/os/CONFIG.Common.RTEMS @@ -95,5 +95,16 @@ G++_POSIX_CPPFLAGS = #-------------------------------------------------- # RTEMS is not that strict GCC_CMPLR_CPPFLAGS_STRICT = -:G++_CMPLR_CPPFLAGS_STRICT = +G++_CMPLR_CPPFLAGS_STRICT = +#-------------------------------------------------- +# RTEMS uses C++ constructors to register commands/programs +%.o: ../%.st + @echo "preprocessing $*.st" + @$(RM) $*.i + $(CPP) $(CPPSNCFLAGS) $< > $*.i + @echo "converting $*.i" + @$(RM) $*.c + $(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.i + @$(RM) $@ + $(COMPILE.cpp) -Wno-deprecated $*.c