makefile 852 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Copyright 2013 Milos Tosic. 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)/premake/shader.mk
  9. GEOMETRY_SOURCES = \
  10. tree1b_lod0_1 \
  11. tree1b_lod0_2 \
  12. tree1b_lod1_1 \
  13. tree1b_lod1_2 \
  14. tree1b_lod2_1 \
  15. tree1b_lod2_2
  16. GEOMETRY_BIN = $(addprefix ../runtime/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SOURCES))))
  17. geometry: $(GEOMETRY_BIN)
  18. ../runtime/meshes/%.bin : %.obj
  19. $(BGFX_DIR)/tools/bin/geometryc -f $(<) -o $(@) -s 0.1 --packnormal 1
  20. rebuild:
  21. @make -s --no-print-directory TARGET=0 clean all
  22. @make -s --no-print-directory TARGET=1 clean all
  23. @make -s --no-print-directory TARGET=2 clean all
  24. @make -s --no-print-directory TARGET=3 clean all
  25. @make -s --no-print-directory TARGET=4 clean all