summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/shaders/makefile
blob: 1ca45471b9b4f6ef8f16e5baaeafddbe3034f27b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
BGFX_DIR=../../../../../../3rdparty/bgfx
RUNTIME_DIR=../../../../../../bgfx
BUILD_DIR=../../../../../../build

include shader.mk

ifneq ($(CHAIN),)
SUBDIRS := $(patsubst .,,$(patsubst ,,$(shell find chains/$(CHAIN) -type d)))
rebuild: $(SUBDIRS)
else
SUBDIRS := $(patsubst .,,$(patsubst ./,,$(shell find . -type d)))
rebuild: main $(SUBDIRS)
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
	@make -s --no-print-directory TARGET=5 clean all

.PHONY: main rebuild $(SUBDIRS)