minor improvements in examples/common.mk
This commit is contained in:
@@ -20,19 +20,19 @@ ifeq ($(ARCH),x86)
|
|||||||
COMMA=,
|
COMMA=,
|
||||||
ifneq (,$(findstring $(COMMA),$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring $(COMMA),$(ISPC_IA_TARGETS)))
|
||||||
#$(info multi-target detected: $(ISPC_IA_TARGETS))
|
#$(info multi-target detected: $(ISPC_IA_TARGETS))
|
||||||
ifneq (,$(findstring sse2-,$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring sse2,$(ISPC_IA_TARGETS)))
|
||||||
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_sse2.o)
|
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_sse2.o)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring sse4-,$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring sse4,$(ISPC_IA_TARGETS)))
|
||||||
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_sse4.o)
|
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_sse4.o)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring avx1-,$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring avx1-,$(ISPC_IA_TARGETS)))
|
||||||
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx.o)
|
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx.o)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring avx1.1-,$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring avx1.1,$(ISPC_IA_TARGETS)))
|
||||||
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx11.o)
|
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx11.o)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring avx2-,$(ISPC_IA_TARGETS)))
|
ifneq (,$(findstring avx2,$(ISPC_IA_TARGETS)))
|
||||||
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx2.o)
|
ISPC_OBJS+=$(addprefix objs/, $(ISPC_SRC:.ispc=)_ispc_avx2.o)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user