makefile 754 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Copyright 2013-2014 Dario Manesku. All rights reserved.
  3. # License: http://www.opensource.org/licenses/BSD-2-Clause
  4. #
  5. BGFX_DIR=../..
  6. RUNTIME_DIR=$(BGFX_DIR)/examples/runtime
  7. BUILD_DIR=../../.build
  8. include $(BGFX_DIR)/scripts/shader.mk
  9. GEOMETRY_SRC= \
  10. tree \
  11. hollowcube
  12. GEOMETRY_BIN=$(addprefix $(RUNTIME_DIR)/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SRC))))
  13. geometry: $(GEOMETRY_BIN)
  14. $(RUNTIME_DIR)/meshes/%.bin : %.obj
  15. $(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1
  16. rebuild:
  17. @make -s --no-print-directory TARGET=0 clean all
  18. @make -s --no-print-directory TARGET=1 clean all
  19. @make -s --no-print-directory TARGET=2 clean all
  20. @make -s --no-print-directory TARGET=3 clean all
  21. @make -s --no-print-directory TARGET=4 clean all