Conversation
|
And at some point, we add support for *.c++ files endings? |
|
@TheSlowGrowth I was kind of thinking the same thing. It'd be nice if we could just append to the I think @beserge and I both tried quick hacks on the existing recipes to do that, but it didn't work quite right. Admittedly, my Would something as simple as this replacement of the separate |
|
@stephenhensley I did a little poking. Your exact proposal does not work as-is because the current As in, However this works (filter CPP_SOURCES_CPP = $(filter %.cpp, $(CPP_SOURCES))
OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(CPP_SOURCES_CPP:.cpp=.o)))
vpath %.cpp $(sort $(dir $(CPP_SOURCES_CPP)))
CPP_SOURCES_CC = $(filter %.cc, $(CPP_SOURCES))
OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(CPP_SOURCES_CC:.cc=.o)))
vpath %.cc $(sort $(dir $(CPP_SOURCES_CC)))This is actually a little more foolproof in general because it ensures that no files with incompatible extensions make it through to |
|
Hya :) good to see i am not first to want this. |
Add CC_SOURCES and .cc compilation to core/Makefile