add explicit rule also for %.cpp (needed for json_spirit), because crosscompiling won't work without.

pull/2/head
roker 2021-05-26 16:33:22 +02:00
parent 2955c4f102
commit 8f10a76cb4
1 changed files with 7 additions and 2 deletions

View File

@ -111,6 +111,13 @@ ifneq ($(MAKECMDGOALS),clean)
-include $(DEPENDS)
endif
%.o: %.cc
$(CXX) $(CXXFLAGS) -c -o $@ $^
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $^
$(LIB_TARGET): $(LIB_OBJECTS)
$(AR) -cr $@ $^
@ -119,8 +126,6 @@ $(TARGET): $(LIB_TARGET) $(MA_OBJECTS) $(SPIRIT_OBJECTS)
$(MA_OBJECTS) $(SPIRIT_OBJECTS) $(LIB_TARGET) \
-o "$@" $(LDLIBS)
%.o: %.cc
$(CXX) $(CXXFLAGS) -c -o $@ $^
unittests: $(TEST_OBJECTS) $(LIB_TARGET) $(SPIRIT_OBJECTS)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lgtest