I am trying to modify my makefile to support .cpp and .cc, however, I keep getting an error such as
target `source/systemFuncs.cpp' doesn't match the target pattern
I am modifying an existing makefile that support .cc and I want to make it also compile .cpp, but I am unsure how. This was originally a make file for a nacl project.
How can I compile both .cpp and .cc?
Related content to the makefile:
x86_32_OBJS:=$(patsubst %.cc,%_32.o,$(CXX_SOURCES))
$(x86_32_OBJS) : %_32.o : %.cc $(THIS_MAKE)
$(CXX) ${INCDIRS} -o $@ -c $< -m32 -O0 -g $(CXXFLAGS)
$(PROJECT)_x86_32.nexe : $(x86_32_OBJS)
$(CXX) -o $@ $^ -m32 -O0 -g $(CXXFLAGS) $(LDFLAGS)
CXX_SOURCES has both .cc files AND .cpp files in them, so it needs to be able to compile both