Make sure target-dependent SOURCES are reflected in OBJECTS

This commit is contained in:
Christophe de Dinechin 2017-11-17 17:01:20 +01:00
parent 99de9424db
commit cdc1a5ac32
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ endif
# Configuration variables
OBJDIR:= $(OBJROOT)$(DIR)
OBJECTS:= $(SOURCES:%=$(OBJDIR)/%$(OBJ_EXT))
OBJECTS= $(SOURCES:%=$(OBJDIR)/%$(OBJ_EXT))
PRODUCTS_EXE:= $(patsubst %.exe,%$(EXE_EXT),$(filter %.exe,$(PRODUCTS)))
PRODUCTS_LIB:= $(patsubst %.lib,%$(LIB_EXT),$(filter %.lib,$(PRODUCTS)))
PRODUCTS_DLL:= $(patsubst %.dll,%$(DLL_EXT),$(filter %.dll,$(PRODUCTS)))