mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
lo.mk: Add support for LOADABLE_OBJ_IGNORE
This commit is contained in:
parent
58d117caf0
commit
0c9d55e233
1 changed files with 4 additions and 3 deletions
|
|
@ -14,9 +14,9 @@ LOADABLE_OBJ_HOOK ?= LOADABLE_OBJECT_HOOK
|
|||
# === change this <
|
||||
|
||||
.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))
|
||||
LOADABLE_OBJS_BASE = $(patsubst $(CPP_PREFIX)%,%,$(basename $(notdir $(wildcard $(TOOLS_DIR)/$(CPP_PREFIX)*.h))))
|
||||
LOADABLE_OBJS = $(filter-out $(LOADABLE_OBJ_IGNORE),$(LOADABLE_OBJS_BASE))
|
||||
LOADABLE_OBJS_O = $(patsubst %.cpp,%.o,$(foreach f,$(LOADABLE_OBJS),$(wildcard $(CPP_PREFIX)$(f).cpp)))
|
||||
ifneq ($(TARGET),mingw)
|
||||
LOADABLE_OBJ_LIBS = $(addprefix $(SO_PREFIX), $(addsuffix .so, $(LOADABLE_OBJS)))
|
||||
else
|
||||
|
|
@ -42,3 +42,4 @@ $(BUILD_LIBDIR)/%.so: %.so
|
|||
install -m 755 $< $@
|
||||
$(BUILD_LIBDIR)/%.dll: %.dll
|
||||
install -m 755 $< $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue