bgfx/examples/12-lod/makefile

33 lines
852 B
Makefile
Raw Normal View History

2013-05-18 06:41:32 -04:00
#
# Copyright 2013 Milos Tosic. All rights reserved.
# License: http://www.opensource.org/licenses/BSD-2-Clause
#
BGFX_DIR=../..
RUNTIME_DIR=$(BGFX_DIR)/examples/runtime
BUILD_DIR=../../.build
include $(BGFX_DIR)/premake/shader.mk
2013-05-18 12:34:36 -04:00
GEOMETRY_SOURCES = \
tree1b_lod0_1 \
tree1b_lod0_2 \
tree1b_lod1_1 \
tree1b_lod1_2 \
tree1b_lod2_1 \
tree1b_lod2_2
2013-05-18 06:41:32 -04:00
2013-05-18 12:34:36 -04:00
GEOMETRY_BIN = $(addprefix ../runtime/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SOURCES))))
2013-05-18 06:41:32 -04:00
2013-05-18 12:34:36 -04:00
geometry: $(GEOMETRY_BIN)
2013-05-18 06:41:32 -04:00
2013-05-18 12:34:36 -04:00
../runtime/meshes/%.bin : %.obj
$(BGFX_DIR)/tools/bin/geometryc -f $(<) -o $(@) -s 0.1 --packnormal 1
2013-05-18 06:41:32 -04:00
rebuild:
@make -s --no-print-directory TARGET=0 clean all
@make -s --no-print-directory TARGET=1 clean all
@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