bgfx/examples/assets/meshes/makefile

40 lines
751 B
Makefile
Raw Normal View History

2014-08-17 07:27:36 +04:00
#
2015-01-03 01:43:11 +03:00
# Copyright 2011-2015 Branimir Karadzic. All rights reserved.
2014-08-17 07:27:36 +04:00
# License: http://www.opensource.org/licenses/BSD-2-Clause
#
BGFX_DIR=../../..
RUNTIME_DIR=$(BGFX_DIR)/examples/runtime
BUILD_DIR=../../.build
2014-09-11 08:48:08 +04:00
include $(BGFX_DIR)/scripts/tools.mk
2014-08-17 07:27:36 +04:00
GEOMETRY_SRC= \
bunny \
bunny_decimated \
bunny_patched \
column \
cube \
hollowcube \
2015-11-20 09:17:37 +03:00
orb \
2014-08-17 07:27:36 +04:00
platform \
tree \
tree1b_lod0_1 \
tree1b_lod0_2 \
tree1b_lod1_1 \
tree1b_lod1_2 \
tree1b_lod2_1 \
tree1b_lod2_2
GEOMETRY_BIN=$(addprefix $(RUNTIME_DIR)/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SRC))))
all: $(GEOMETRY_BIN)
clean:
@echo Cleaning...
@-rm -vf $(GEOMETRY_BIN)
rebuild: clean all
2014-08-17 07:27:36 +04:00
$(RUNTIME_DIR)/meshes/%.bin : %.obj
2015-11-20 09:17:37 +03:00
$(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1