Accept empty PRODUCTS list, closes #10

This commit is contained in:
Christophe de Dinechin 2017-11-06 17:18:14 +01:00
parent e0f6492b0f
commit cedb887262
1 changed files with 2 additions and 0 deletions

View File

@ -68,9 +68,11 @@ OBJPRODUCTS:= $(OBJROOT_EXE) $(OBJROOT_LIB) $(OBJROOT_DLL) $(OBJROOT_OTHER)
# This is to help executable build rules be more robust and not catch
# unknown extensions by mistake. The extension is replaced with the
# correct platform extension, i.e. .a for static libraries on Linux
ifneq ($(PRODUCTS),)
ifeq ($(PRODUCTS_EXE)$(PRODUCTS_LIB)$(PRODUCTS_DLL),)
$(error Error: Variable PRODUCTS must end in .exe, .lib or .dll)
endif
endif
LIBNAMES:= $(notdir $(LIBRARIES))
OBJLIBRARIES:= $(LIBNAMES:%=$(OBJROOT)/%$(LIB_EXT))