No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile-impl.mk 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #
  2. # Generated Makefile - do not edit!
  3. #
  4. # Edit the Makefile in the project folder instead (../Makefile). Each target
  5. # has a pre- and a post- target defined where you can add customization code.
  6. #
  7. # This makefile implements macros and targets common to all configurations.
  8. #
  9. # NOCDDL
  10. # Building and Cleaning subprojects are done by default, but can be controlled with the SUB
  11. # macro. If SUB=no, subprojects will not be built or cleaned. The following macro
  12. # statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf
  13. # and .clean-reqprojects-conf unless SUB has the value 'no'
  14. SUB_no=NO
  15. SUBPROJECTS=${SUB_${SUB}}
  16. BUILD_SUBPROJECTS_=.build-subprojects
  17. BUILD_SUBPROJECTS_NO=
  18. BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}}
  19. CLEAN_SUBPROJECTS_=.clean-subprojects
  20. CLEAN_SUBPROJECTS_NO=
  21. CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}}
  22. # Project Name
  23. PROJECTNAME=superviseur-robot
  24. # Active Configuration
  25. DEFAULTCONF=Debug
  26. CONF=${DEFAULTCONF}
  27. # All Configurations
  28. ALLCONFS=Debug Release Debug__RPI_ Debug__Pthread_ Debug__Pthread__RPI
  29. # build
  30. .build-impl: .build-pre .validate-impl .depcheck-impl
  31. @#echo "=> Running $@... Configuration=$(CONF)"
  32. "${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf
  33. # clean
  34. .clean-impl: .clean-pre .validate-impl .depcheck-impl
  35. @#echo "=> Running $@... Configuration=$(CONF)"
  36. "${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf
  37. # clobber
  38. .clobber-impl: .clobber-pre .depcheck-impl
  39. @#echo "=> Running $@..."
  40. for CONF in ${ALLCONFS}; \
  41. do \
  42. "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \
  43. done
  44. # all
  45. .all-impl: .all-pre .depcheck-impl
  46. @#echo "=> Running $@..."
  47. for CONF in ${ALLCONFS}; \
  48. do \
  49. "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \
  50. done
  51. # build tests
  52. .build-tests-impl: .build-impl .build-tests-pre
  53. @#echo "=> Running $@... Configuration=$(CONF)"
  54. "${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf
  55. # run tests
  56. .test-impl: .build-tests-impl .test-pre
  57. @#echo "=> Running $@... Configuration=$(CONF)"
  58. "${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf
  59. # dependency checking support
  60. .depcheck-impl:
  61. @echo "# This code depends on make tool being used" >.dep.inc
  62. @if [ -n "${MAKE_VERSION}" ]; then \
  63. echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES} \$${TESTOBJECTFILES}))" >>.dep.inc; \
  64. echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \
  65. echo "include \$${DEPFILES}" >>.dep.inc; \
  66. echo "endif" >>.dep.inc; \
  67. else \
  68. echo ".KEEP_STATE:" >>.dep.inc; \
  69. echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \
  70. fi
  71. # configuration validation
  72. .validate-impl:
  73. @if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
  74. then \
  75. echo ""; \
  76. echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \
  77. echo "See 'make help' for details."; \
  78. echo "Current directory: " `pwd`; \
  79. echo ""; \
  80. fi
  81. @if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
  82. then \
  83. exit 1; \
  84. fi
  85. # help
  86. .help-impl: .help-pre
  87. @echo "This makefile supports the following configurations:"
  88. @echo " ${ALLCONFS}"
  89. @echo ""
  90. @echo "and the following targets:"
  91. @echo " build (default target)"
  92. @echo " clean"
  93. @echo " clobber"
  94. @echo " all"
  95. @echo " help"
  96. @echo ""
  97. @echo "Makefile Usage:"
  98. @echo " make [CONF=<CONFIGURATION>] [SUB=no] build"
  99. @echo " make [CONF=<CONFIGURATION>] [SUB=no] clean"
  100. @echo " make [SUB=no] clobber"
  101. @echo " make [SUB=no] all"
  102. @echo " make help"
  103. @echo ""
  104. @echo "Target 'build' will build a specific configuration and, unless 'SUB=no',"
  105. @echo " also build subprojects."
  106. @echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no',"
  107. @echo " also clean subprojects."
  108. @echo "Target 'clobber' will remove all built files from all configurations and,"
  109. @echo " unless 'SUB=no', also from subprojects."
  110. @echo "Target 'all' will will build all configurations and, unless 'SUB=no',"
  111. @echo " also build subprojects."
  112. @echo "Target 'help' prints this message."
  113. @echo ""