makefile 745 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright 2011-2015 Branimir Karadzic. 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/tools.mk
  9. GEOMETRY_SRC= \
  10. bunny \
  11. bunny_decimated \
  12. bunny_patched \
  13. column \
  14. cube \
  15. hollowcube \
  16. platform \
  17. tree \
  18. tree1b_lod0_1 \
  19. tree1b_lod0_2 \
  20. tree1b_lod1_1 \
  21. tree1b_lod1_2 \
  22. tree1b_lod2_1 \
  23. tree1b_lod2_2
  24. GEOMETRY_BIN=$(addprefix $(RUNTIME_DIR)/meshes/, $(addsuffix .bin, $(basename $(GEOMETRY_SRC))))
  25. all: $(GEOMETRY_BIN)
  26. clean:
  27. @echo Cleaning...
  28. @-rm -vf $(GEOMETRY_BIN)
  29. rebuild: clean all
  30. $(RUNTIME_DIR)/meshes/%.bin : %.obj
  31. $(SILENT) $(GEOMETRYC) -f $(<) -o $(@) --packnormal 1