Skip to content
Snippets Groups Projects
Select Git revision
  • 33ac9dc2b59860871bf2ac875ca40e450f84c662
  • main default protected
2 results

day2.py

Blame
  • Makefile 62.87 KiB
    # SPDX-License-Identifier: GPL-2.0
    VERSION = 5
    PATCHLEVEL = 11
    SUBLEVEL = 0
    EXTRAVERSION = -rc5
    NAME = Kleptomaniac Octopus
    
    # *DOCUMENTATION*
    # To see a list of typical targets execute "make help"
    # More info can be located in ./README
    # Comments in this file are targeted only to the developer, do not
    # expect to learn how to build the kernel reading this file.
    
    $(if $(filter __%, $(MAKECMDGOALS)), \
    	$(error targets prefixed with '__' are only for internal use))
    
    # That's our default target when none is given on the command line
    PHONY := __all
    __all:
    
    # We are using a recursive build, so we need to do a little thinking
    # to get the ordering right.
    #
    # Most importantly: sub-Makefiles should only ever modify files in
    # their own directory. If in some directory we have a dependency on
    # a file in another dir (which doesn't happen often, but it's often
    # unavoidable when linking the built-in.a targets which finally
    # turn into vmlinux), we will call a sub make in that other dir, and
    # after that we are sure that everything which is in that other dir
    # is now up to date.
    #
    # The only cases where we need to modify files which have global
    # effects are thus separated out and done before the recursive
    # descending is started. They are now explicitly listed as the
    # prepare rule.
    
    ifneq ($(sub_make_done),1)
    
    # Do not use make's built-in rules and variables
    # (this increases performance and avoids hard-to-debug behaviour)
    MAKEFLAGS += -rR
    
    # Avoid funny character set dependencies
    unexport LC_ALL
    LC_COLLATE=C
    LC_NUMERIC=C
    export LC_COLLATE LC_NUMERIC
    
    # Avoid interference with shell env settings
    unexport GREP_OPTIONS
    
    # Beautify output
    # ---------------------------------------------------------------------------
    #
    # Normally, we echo the whole command before executing it. By making
    # that echo $($(quiet)$(cmd)), we now have the possibility to set
    # $(quiet) to choose other forms of output instead, e.g.
    #
    #         quiet_cmd_cc_o_c = Compiling $(RELDIR)/$@
    #         cmd_cc_o_c       = $(CC) $(c_flags) -c -o $@ $<
    #
    # If $(quiet) is empty, the whole command will be printed.
    # If it is set to "quiet_", only the short version will be printed.
    # If it is set to "silent_", nothing will be printed at all, since
    # the variable $(silent_cmd_cc_o_c) doesn't exist.
    #
    # A simple variant is to prefix commands with $(Q) - that's useful
    # for commands that shall be hidden in non-verbose mode.
    #
    #	$(Q)ln $@ :<