diff --git a/make/lo.mk b/make/lo.mk index 67e29d8f..34fc50f0 100644 --- a/make/lo.mk +++ b/make/lo.mk @@ -32,8 +32,8 @@ clean: clean.lo clean.lo: profclean rm -f $(filter-out $(CPP_PREFIX)%.cpp,$(wildcard *.o *.cpp *.so *.done *.dll)) -$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o $(CPP_PREFIX)%.o - $(CPP) -shared $^ $(LDFLAGS) -o $@ +$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o + $(CPP) -shared $^ $(LDFLAGS) $(wildcard $(TOOLS_DIR)/$(CPP_PREFIX)$*.o) -o $@ %.cpp: $(TOOLS_DIR)/$(CPP_PREFIX)%.h echo -e "#include \"$<\"\n$(LOADABLE_OBJ_HOOK)($(CPP_PREFIX)$*);\n" > $@