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++.
This commit is contained in:
W. Eric Norum
2000-04-21 22:45:19 +00:00
parent cc6511fe95
commit 34bf86f1d6

View File

@@ -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