mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
34 lines
672 B
Makefile
34 lines
672 B
Makefile
|
#
|
||
|
# Copyright 2011-2014 Branimir Karadzic. 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/tools.mk
|
||
|
|
||
|
GEOMETRY_SRC= \
|
||
|
bunny \
|
||
|
bunny_decimated \
|
||
|
bunny_patched \
|
||
|
column \
|
||
|
cube \
|
||
|
hollowcube \
|
||
|
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)
|
||
|
|
||
|
$(RUNTIME_DIR)/meshes/%.bin : %.obj
|
||
|
$(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1
|