mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
lo.mk: Compiael possibly present $(CPP_PREFIX)*.cpp into loadable object, too
This commit is contained in:
parent
f171940626
commit
58d117caf0
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ LOADABLE_OBJ_HOOK ?= LOADABLE_OBJECT_HOOK
|
|||
.PRECIOUS: %.cpp
|
||||
|
||||
LOADABLE_OBJS = $(patsubst $(CPP_PREFIX)%,%,$(basename $(notdir $(wildcard $(TOOLS_DIR)/$(CPP_PREFIX)*.h))))
|
||||
LOADABLE_OBJS_O = $(patsubst %.cpp,%.o,$(wildcard $(CPP_PREFIX)*.cpp))
|
||||
ifneq ($(TARGET),mingw)
|
||||
LOADABLE_OBJ_LIBS = $(addprefix $(SO_PREFIX), $(addsuffix .so, $(LOADABLE_OBJS)))
|
||||
else
|
||||
|
|
@ -31,7 +32,7 @@ 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
|
||||
$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o $(LOADABLE_OBJS_O)
|
||||
$(CPP) -shared $^ $(LDFLAGS) -o $@
|
||||
|
||||
%.cpp: $(TOOLS_DIR)/$(CPP_PREFIX)%.h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue