blob: f8b0ee890aff2bf7c0e110e100f42dd5ceddc7ee (
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
37
38
39
40
|
#
# Copyright 2011-2015 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)/scripts/tools.mk
GEOMETRY_SRC= \
bunny \
bunny_decimated \
bunny_patched \
column \
cube \
hollowcube \
orb \
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
$(RUNTIME_DIR)/meshes/%.bin : %.obj
$(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1
|