2013-10-18 01:55:43 -04:00
|
|
|
#
|
2014-01-13 17:45:18 -05:00
|
|
|
# Copyright 2013-2014 Dario Manesku. All rights reserved.
|
2013-10-18 01:55:43 -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 00:48:08 -04:00
|
|
|
include $(BGFX_DIR)/scripts/shader.mk
|
2013-10-18 01:55:43 -04:00
|
|
|
|
2014-08-17 20:20:15 -04:00
|
|
|
GEOMETRY_SRC= \
|
|
|
|
bunny_patched \
|
|
|
|
bunny_decimated \
|
|
|
|
platform \
|
|
|
|
cube
|
2013-10-18 01:55:43 -04:00
|
|
|
|
2014-08-17 20:20:15 -04:00
|
|
|
GEOMETRY_BIN=$(addprefix $(RUNTIME_DIR)/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SRC))))
|
2013-10-18 01:55:43 -04:00
|
|
|
|
2014-08-17 20:20:15 -04:00
|
|
|
geometry: $(GEOMETRY_BIN)
|
|
|
|
|
|
|
|
$(RUNTIME_DIR)/meshes/%.bin : %.obj
|
|
|
|
$(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1
|
2013-10-18 01:55:43 -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
|