Accept empty PRODUCTS list, closes #10
This commit is contained in:
parent
e0f6492b0f
commit
cedb887262
2
rules.mk
2
rules.mk
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue