mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
lib.mk: Add section handling contrib libraries
This commit is contained in:
parent
191ba93726
commit
81cfad8b79
1 changed files with 29 additions and 0 deletions
29
make/lib.mk
29
make/lib.mk
|
|
@ -32,3 +32,32 @@ ld-%.conf:
|
|||
|
||||
clean.ld-conf:
|
||||
rm -f $(LD_CONF)
|
||||
|
||||
# ------------------------------------------ contrib libraries
|
||||
LOCAL_LIBS += $(CONTRIB_LIBS)
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
CONTRIB_LIBS_PATH += $(CROSS_TOOL_DIR)/bin
|
||||
endif
|
||||
|
||||
# deps on mandatory targets
|
||||
all: $(CONTRIB_LIBS)
|
||||
clean: clean.contrib-libs
|
||||
|
||||
# deps on optional targets
|
||||
echo-contrib: echo.contrib-libs
|
||||
|
||||
# rules
|
||||
clean.contrib-libs:
|
||||
rm -f $(CONTRIB_LIBS)
|
||||
|
||||
define contrib_lib_search_rules
|
||||
%.dll: $(1)/%.dll
|
||||
cp -p $$< $$@
|
||||
endef
|
||||
|
||||
$(foreach p,$(CONTRIB_LIBS_PATH),$(eval $(call contrib_lib_search_rules,$(p))))
|
||||
|
||||
echo.contrib-libs:
|
||||
@echo CONTRIB_LIBS_PATH = $(CONTRIB_LIBS_PATH)
|
||||
@echo CONTRIB_LIBS = $(CONTRIB_LIBS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue