makeSolution.tpl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. DEPS :=
  6. LIB_TARGETS :=
  7. LIB_TARGETS_DEBUG :=
  8. SHARED_LIB_TARGETS :=
  9. SHARED_LIB_TARGETS_DEBUG :=
  10. APP_TARGETS :=
  11. APP_TARGETS_DEBUG :=
  12. all: debug release
  13. clean:
  14. rm -rf Release
  15. rm -rf Debug
  16. rm -rf {$libDir}/compiled/Make
  17. rm -f $(SHARED_LIB_TARGETS) $(SHARED_LIB_TARGETS_DEBUG)
  18. rm -f $(APP_TARGETS) $(APP_TARGETS_DEBUG)
  19. rm -f *.d
  20. .PHONY: all debug release clean
  21. {foreach item=project from=$projects}
  22. -include x {$project->name}
  23. {/foreach}
  24. -include x $(DEPS)
  25. # it's important that I specify the libs and apps targets
  26. # after they've actually been defined by the includes above.
  27. #
  28. release: $(LIB_TARGETS) $(SHARED_LIB_TARGETS) $(APP_TARGETS)
  29. @echo Built libraries: $(LIB_TARGETS)
  30. @echo Built shared libraries: $(SHARED_LIB_TARGETS)
  31. @echo Build apps: $(APP_TARGETS)
  32. debug: $(LIB_TARGETS_DEBUG) $(SHARED_LIB_TARGETS_DEBUG) $(APP_TARGETS_DEBUG)
  33. @echo Built libraries: $(LIB_TARGETS_DEBUG)
  34. @echo Built shared libraries: $(SHARED_LIB_TARGETS_DEBUG)
  35. @echo Build apps: $(APP_TARGETS_DEBUG)