fix Windows build on Windows
This commit is contained in:
parent
7985ad3434
commit
6236225ce6
9
Makefile
9
Makefile
@ -8,6 +8,7 @@ OPT = -g -Og
|
|||||||
|
|
||||||
CXXSTD += -std=gnu++14
|
CXXSTD += -std=gnu++14
|
||||||
|
|
||||||
|
CFLAGS += -march=core2
|
||||||
CFLAGS += -Wall -Werror -Wfatal-errors
|
CFLAGS += -Wall -Werror -Wfatal-errors
|
||||||
CFLAGS += -Wno-unused-but-set-variable
|
CFLAGS += -Wno-unused-but-set-variable
|
||||||
CFLAGS += -Wno-unknown-pragmas
|
CFLAGS += -Wno-unknown-pragmas
|
||||||
@ -17,14 +18,16 @@ CFLAGS += -municode
|
|||||||
|
|
||||||
WOPT += -municode
|
WOPT += -municode
|
||||||
|
|
||||||
FXC ?= C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Utilities/bin/x86/fxc.exe
|
|
||||||
|
|
||||||
INCLUDE = \
|
INCLUDE = \
|
||||||
-I./include
|
-I./include
|
||||||
|
|
||||||
%.fxo: %.fx
|
%.fxo: %.fx
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
fxc.exe @"shader_$(BUILD_TYPE).rsp" /T fx_4_0 /nologo /Fo $@ $<
|
||||||
|
else
|
||||||
@echo fxc.exe @"shader_$(BUILD_TYPE).rsp" /T fx_4_0 /nologo /Fo $@ $<
|
@echo fxc.exe @"shader_$(BUILD_TYPE).rsp" /T fx_4_0 /nologo /Fo $@ $<
|
||||||
@wine "$(FXC)" @"shader_$(BUILD_TYPE).rsp" /T fx_4_0 /nologo /Fo $@ $<
|
@wine fxc.exe @"shader_$(BUILD_TYPE).rsp" /T fx_4_0 /nologo /Fo $@ $<
|
||||||
|
endif
|
||||||
|
|
||||||
SHADERS = \
|
SHADERS = \
|
||||||
main.fxo \
|
main.fxo \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user