Add platform driver dispatch header and makefile module source variable.
[pub/lufa.git] / LUFA / Build / lufa.core.in
index 71c35e0..bc07a94 100644 (file)
@@ -6,8 +6,10 @@
 #           www.lufa-lib.org\r
 #\r
 \r
-LUFA_BUILD_MODULES += CORE\r
-LUFA_BUILD_TARGETS += list_targets list_modules help\r
+LUFA_BUILD_MODULES        += CORE\r
+LUFA_BUILD_TARGETS        += info help list_targets list_modules list_mandatory list_optional \r
+LUFA_BUILD_MANDATORY_VARS += \r
+LUFA_BUILD_OPTIONAL_VARS  += \r
 \r
 # -----------------------------------------------------------------------------\r
 #               LUFA Core Buildsystem Makefile Module.\r
@@ -21,6 +23,10 @@ LUFA_BUILD_TARGETS += list_targets list_modules help
 #    help                      - Build system help\r
 #    list_targets              - List all build targets\r
 #    list_modules              - List all build modules\r
+#    list_mandatory            - List all mandatory make variables required by\r
+#                                the included build modules of the application\r
+#    list_optional             - List all optional make variables required by\r
+#                                the included build modules of the application\r
 #\r
 # MANDATORY PARAMETERS:\r
 #\r
@@ -53,14 +59,25 @@ help: info
        @echo " in your project makefile. Parameters marked as optional will      "\r
        @echo " assume a default value in the module if not user-assigned.        "\r
        @echo "==================================================================="\r
-       @echo "  Currently Used Modules in this application:                      "\r
+       @echo "  Currently used modules in this application:                      "\r
        @echo "                                                                   "\r
        @echo "    [" $(sort $(LUFA_BUILD_MODULES)) "]"\r
        @echo "                                                                   "\r
        @echo "                                                                   "\r
-       @echo "  Currently Available Build Targets in this application:           "\r
+       @echo "  Currently available build targets in this application:           "\r
        @echo "                                                                   "\r
        @echo "    [" $(sort $(LUFA_BUILD_TARGETS)) "]"\r
+       @echo "                                                                   "\r
+       @echo "                                                                   "\r
+       @echo "  Mandatory variables required by the selected build Modules:      "\r
+       @echo "                                                                   "\r
+       @echo "    [" $(sort $(LUFA_BUILD_MANDATORY_VARS)) "]"\r
+       @echo "                                                                   "\r
+       @echo "                                                                   "\r
+       @echo "  Optional variables required by the selected build Modules:       "\r
+       @echo "                                                                   "\r
+       @echo "    [" $(filter-out $(LUFA_BUILD_MANDATORY_VARS), $(sort $(LUFA_BUILD_OPTIONAL_VARS))) "]"\r
+       @echo "                                                                   "\r
        @echo "==================================================================="\r
        @echo "        The LUFA BuildSystem 2.0 - Powered By Unicorns (tm)        "\r
        @echo "==================================================================="\r
@@ -71,3 +88,8 @@ list_targets:
 list_modules:\r
        @echo Currently Build Modules: $(sort $(LUFA_BUILD_MODULES))\r
 \r
+list_mandatory:\r
+       @echo Mandatory Variables for Included Modules: $(sort $(LUFA_BUILD_MANDATORY_VARS))\r
+       \r
+list_optional:\r
+       @echo Optional Variables for Included Modules: $(filter-out $(LUFA_BUILD_MANDATORY_VARS), $(sort $(LUFA_BUILD_OPTIONAL_VARS)))\r