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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user