2018-06-18 16:44:29 +00:00
|
|
|
|
|
|
|
#NOTE: if you're on windows, you might want to use CC=i686-pc-mingw32-gcc
|
|
|
|
|
|
|
|
CC ?= gcc
|
|
|
|
VKSDKPATH ?= ~/VulkanSDK/1.1.73.0/x86_64/bin/
|
2016-07-28 13:18:22 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
2021-04-14 05:21:04 +00:00
|
|
|
NAMES= fixedemu fixedemu_flat altwater bloom_blur bloom_filter bloom_final colourtint crepuscular_opaque crepuscular_rays crepuscular_sky depthonly default2d defaultadditivesprite defaultskin defaultsky defaultskybox defaultfill defaultsprite defaultwall defaultwarp defaultgammacb drawflat_wall lpp_depthnorm lpp_light lpp_wall postproc_fisheye postproc_panorama postproc_laea postproc_stereographic postproc_equirectangular fxaa underwaterwarp menutint terrain rtlight
|
2016-07-28 13:18:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
ALLNAMES+=$(foreach v,$(NAMES),glsl/$v.glsl)
|
|
|
|
ALLNAMES+=$(foreach v,$(NAMES),hlsl9/$v.hlsl)
|
|
|
|
ALLNAMES+=$(foreach v,$(NAMES),hlsl11/$v.hlsl)
|
|
|
|
ALLNAMES:=$(realpath $(ALLNAMES))
|
|
|
|
|
|
|
|
VKNAMES=$(realpath $(foreach v,$(NAMES),vulkan/$v.glsl))
|
|
|
|
VKNAMES+=postproc_fisheye
|
|
|
|
VKNAMES:=$(foreach v,$(VKNAMES),vulkanblobs/$(notdir $(basename $v)).fvb)
|
|
|
|
ALLNAMES+=$(VKNAMES)
|
|
|
|
|
|
|
|
generatebuiltinsl: generatebuiltinsl.c
|
|
|
|
$(CC) $< -o $@
|
|
|
|
|
|
|
|
makevulkanblob: makevulkanblob.c
|
|
|
|
$(CC) $< -o $@
|
|
|
|
|
|
|
|
vulkanblobs/%.fvb: vulkan/%.glsl makevulkanblob vulkan/sys/defs.h vulkan/sys/fog.h vulkan/sys/offsetmapping.h vulkan/sys/skeletal.h
|
2018-06-18 16:44:29 +00:00
|
|
|
@echo Making $<
|
|
|
|
@PATH=$(PATH):$(VKSDKPATH) ./makevulkanblob $< $@
|
2016-07-28 13:18:22 +00:00
|
|
|
|
2017-07-28 01:49:25 +00:00
|
|
|
#vulkanblobs/%.fvb: glsl/%.glsl makevulkanblob vulkan/sys/defs.h vulkan/sys/fog.h vulkan/sys/offsetmapping.h vulkan/sys/skeletal.h
|
|
|
|
# ./makevulkanblob $< $@
|
2016-07-28 13:18:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: generatebuiltinsl $(ALLNAMES)
|
2018-06-18 16:44:29 +00:00
|
|
|
./generatebuiltinsl
|