Make shaders compile dx9 and dx11 only on windows (nw)

This commit is contained in:
Miodrag Milanovic 2016-11-08 18:17:54 +01:00
parent 5d68226967
commit b80710c868
2 changed files with 7 additions and 3 deletions

View File

@ -14,16 +14,20 @@ endif
$(SUBDIRS):
@echo $@
ifeq ($(OS),windows)
@make -s --no-print-directory TARGET=0 SHADERS_DIR=$@/ clean all
@make -s --no-print-directory TARGET=1 SHADERS_DIR=$@/ clean all
endif
@make -s --no-print-directory TARGET=2 SHADERS_DIR=$@/ clean all
@make -s --no-print-directory TARGET=3 SHADERS_DIR=$@/ clean all
@make -s --no-print-directory TARGET=4 SHADERS_DIR=$@/ clean all
@make -s --no-print-directory TARGET=5 SHADERS_DIR=$@/ clean all
main:
ifeq ($(OS),windows)
@make -s --no-print-directory TARGET=0 clean all
@make -s --no-print-directory TARGET=1 clean all
endif
@make -s --no-print-directory TARGET=2 clean all
@make -s --no-print-directory TARGET=3 clean all
@make -s --no-print-directory TARGET=4 clean all

View File

@ -85,9 +85,9 @@ endif
endif
THISDIR := $(dir $(lastword $(MAKEFILE_LIST)))
VS_FLAGS+=-i $(THISDIR)../src/;$(THISDIR)../examples/common/
FS_FLAGS+=-i $(THISDIR)../src/;$(THISDIR)../examples/common/
CS_FLAGS+=-i $(THISDIR)../src/$(THISDIR)../examples/common/
VS_FLAGS+=-i "$(THISDIR)../src/;$(THISDIR)../examples/common/"
FS_FLAGS+=-i "$(THISDIR)../src/;$(THISDIR)../examples/common/"
CS_FLAGS+=-i "$(THISDIR)../src/;$(THISDIR)../examples/common/"
BUILD_OUTPUT_DIR=$(addprefix ./, $(RUNTIME_DIR)/$(SHADER_PATH))
BUILD_INTERMEDIATE_DIR=$(addprefix $(BUILD_DIR)/, $(SHADER_PATH))