makeSolution.tpl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # I release this sample under the MIT license: free for any use, provided
  2. # you hold me harmless from any such use you make, and you retain my
  3. # copyright on the actual sources.
  4. # Copyright 2005 Jon Watte.
  5. # This sets the option for how many instances of gcc we'll run at the
  6. # same time, one per CPU core in this case. This speeds up build time.
  7. # Adjust to your amount of cores.
  8. OPTIONS := --jobs=4
  9. DEPS :=
  10. LIB_TARGETS :=
  11. LIB_TARGETS_DEBUG :=
  12. SHARED_LIB_TARGETS :=
  13. SHARED_LIB_TARGETS_DEBUG :=
  14. APP_TARGETS :=
  15. APP_TARGETS_DEBUG :=
  16. all: debug release
  17. clean:
  18. rm -rf Release
  19. rm -rf Debug
  20. rm -rf {$libDir}/compiled/Make
  21. rm -f $(SHARED_LIB_TARGETS) $(SHARED_LIB_TARGETS_DEBUG)
  22. rm -f $(APP_TARGETS) $(APP_TARGETS_DEBUG)
  23. rm -f *.d
  24. .PHONY: all debug release clean
  25. {foreach item=project from=$projects}
  26. -include x {$project->name}
  27. {/foreach}
  28. -include x $(DEPS)
  29. # it's important that I specify the libs and apps targets
  30. # after they've actually been defined by the includes above.
  31. #
  32. release: $(LIB_TARGETS) $(SHARED_LIB_TARGETS) $(APP_TARGETS)
  33. @echo Built libraries: $(LIB_TARGETS)
  34. @echo Built shared libraries: $(SHARED_LIB_TARGETS)
  35. @echo Build apps: $(APP_TARGETS)
  36. debug: $(LIB_TARGETS_DEBUG) $(SHARED_LIB_TARGETS_DEBUG) $(APP_TARGETS_DEBUG)
  37. @echo Built libraries: $(LIB_TARGETS_DEBUG)
  38. @echo Built shared libraries: $(SHARED_LIB_TARGETS_DEBUG)
  39. @echo Build apps: $(APP_TARGETS_DEBUG)