The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/makedefs/MakeInc.def

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 export SOURCE=$(shell /bin/pwd)
    2 
    3 #
    4 # gnumake 3.77 support
    5 #
    6 export USE_APPLE_PB_SUPPORT = all
    7 
    8 #
    9 # Incremental Build option
   10 #
   11 ifndef INCR_EXPORTHDRS
   12 ifeq ($(shell test -d $$OBJROOT/EXPORT_HDRS;echo $$?),0)
   13 export INCR_EXPORTHDRS  = TRUE
   14 else
   15 export INCR_EXPORTHDRS  = FALSE
   16 endif
   17 endif
   18 
   19 #
   20 # Component List
   21 #
   22 ifndef COMPONENT_LIST 
   23 export COMPONENT_LIST   = osfmk bsd libkern iokit pexpert libsa security
   24 export COMPONENT_LIST_UC := $(shell printf "%s" "$(COMPONENT_LIST)" | $(TR) a-z A-Z)
   25 endif
   26 ifndef  COMPONENT
   27 export COMPONENT        := $(firstword $(subst /, ,$(shell $(RELPATH) $(SRCROOT) $(SOURCE))))
   28 export COMPONENT_IMPORT_LIST := $(filter-out $(COMPONENT),$(COMPONENT_LIST)) 
   29 else
   30 ifeq    ($(COMPONENT), .)
   31 export COMPONENT        := $(firstword $(subst /, ,$(shell $(RELPATH) $(SRCROOT) $(SOURCE))))
   32 export COMPONENT_IMPORT_LIST := $(filter-out $(COMPONENT),$(COMPONENT_LIST)) 
   33 endif
   34 endif
   35 
   36 # Architecture options
   37 #
   38 ifndef SUPPORTED_ARCH_CONFIGS
   39 export SUPPORTED_ARCH_CONFIGS = PPC I386 ARM
   40 endif
   41 
   42 ifndef ARCH_CONFIGS
   43 ifdef RC_ARCHS
   44 export ARCH_CONFIGS     := $(shell printf "%s" "$(RC_ARCHS)" | $(TR) a-z A-Z)
   45 else
   46 export ARCH_CONFIGS     := $(shell arch | $(TR) a-z A-Z)
   47 endif
   48 endif
   49 ifdef   ARCH_CONFIG
   50 ifndef ARCH_CONFIG_LC
   51 export ARCH_CONFIG_LC   := $(shell printf "%s" "$(ARCH_CONFIG)" | $(TR) A-Z a-z)
   52 endif
   53 endif
   54 
   55 #
   56 # Kernel Configuration options  
   57 #
   58 ifndef SUPPORTED_KERNEL_CONFIGS
   59 export SUPPORTED_KERNEL_CONFIGS = RELEASE DEVELOPMENT DEBUG PROFILE
   60 endif
   61 
   62 ifndef DEFAULT_KERNEL_CONFIG
   63 export DEFAULT_KERNEL_CONFIG = RELEASE
   64 endif
   65 
   66 # If KERNEL_CONFIGS is specified it should override KERNEL_CONFIG.
   67 # If KERNEL_CONFIG is specified it will override the default. Will quit with
   68 # error if more than one config is specified.
   69 # If DEFAULT_KERNEL_CONFIG is not specified then it will be built RELEASE.
   70 ifndef KERNEL_CONFIGS
   71         ifndef KERNEL_CONFIG
   72         export KERNEL_CONFIGS   = $(DEFAULT_KERNEL_CONFIG)
   73         else
   74         export KERNEL_CONFIGS   = $(KERNEL_CONFIG)
   75         endif
   76 endif
   77 
   78 ifndef KERNEL_CONFIG
   79 export KERNEL_CONFIG    = $(firstword $(KERNEL_CONFIGS))
   80 endif
   81 
   82 ifneq ($(words $(KERNEL_CONFIG)), 1)
   83 $(error There were $(words $(KERNEL_CONFIG)) parameters passed to KERNEL_CONFIG = $(KERNEL_CONFG). \
   84                 Are you sure? To specify multiple configurations please use KERNEL_CONFIGS)
   85 endif
   86 
   87 #
   88 # Machine Configuration options  
   89 #
   90 # ppc supported configurations : none
   91 # i386 supported configurations : none
   92 # arm supported configurations : LN2410SBC MX31ADS INTEGRATORCP S5I3000SMDK S5L8900XFPGA S5L8900XRB OLOCREEK
   93 #
   94 ifndef SUPPORTED_MACHINE_CONFIGS
   95 export SUPPORTED_MACHINE_CONFIGS = LN2410SBC MX31ADS INTEGRATORCP S5I3000SMDK S5L8900XFPGA S5L8900XRB OLOCREEK DEFAULT
   96 endif
   97 
   98 export DEFAULT_ARM_MACHINE_CONFIG       = S5L8900XRB
   99 
  100 ifndef MACHINE_CONFIG
  101 export MACHINE_CONFIG   = DEFAULT
  102 endif
  103 
  104 ifndef MACHINE_FLAGS_LN2410SBC
  105 export MACHINE_FLAGS_LN2410SBC = -DARM_BOARD_CONFIG_LN2410_920T
  106 endif
  107 ifndef MACHINE_FLAGS_MX31ADS
  108 export MACHINE_FLAGS_MX31ADS = -DARM_BOARD_CONFIG_MX31ADS_1136JFS
  109 endif
  110 ifndef MACHINE_FLAGS_INTEGRATORCP
  111 export MACHINE_FLAGS_INTEGRATORCP = -DARM_BOARD_CONFIG_INTEGRATORCP_1136JFS
  112 endif
  113 ifndef MACHINE_FLAGS_S5I3000SMDK
  114 export MACHINE_FLAGS_S5I3000SMDK = -DARM_BOARD_CONFIG_S5I3000SMDK_1176JZFS
  115 endif
  116 ifndef MACHINE_FLAGS_S5L8900XFPGA
  117 export MACHINE_FLAGS_S5L8900XFPGA = -DARM_BOARD_CONFIG_S5L8900XFPGA_1136JFS
  118 endif
  119 ifndef MACHINE_FLAGS_S5L8900XRB
  120 export MACHINE_FLAGS_S5L8900XRB = -DARM_BOARD_CONFIG_S5L8900XRB
  121 endif
  122 ifndef MACHINE_FLAGS_OLOCREEK
  123 export MACHINE_FLAGS_OLOCREEK = -DARM_BOARD_CONFIG_OLOCREEK
  124 endif
  125 ifndef MACHINE_FLAGS_DEFAULT
  126 export MACHINE_FLAGS_DEFAULT =
  127 endif
  128 
  129 #
  130 # Target configuration options.  NOTE - target configurations will 
  131 # override ARCH_CONFIGS and KERNEL_CONFIGS.
  132 #
  133 # Target configs come in groups of three parameters.  The first is the 
  134 # kernel configuration, the second is the architecture configuration,
  135 # and the third is the machine configuration.  You may pass in as
  136 # many groups of configurations as you wish.  Each item passed in is
  137 # seperated by whitespace.
  138 #
  139 # Example:
  140 #       TARGET_CONFIGS="release ppc default debug i386 default release arm MX31ADS"
  141 # Parameters may be in upper or lower case (they are converted to upper).
  142 #
  143 # "default" parameter is a special case.  It means use the default value for 
  144 # that parameter.  Here are the default values for each configuration:
  145 #
  146 # default kernel configuration = DEFAULT_KERNEL_CONFIG
  147 # default architecture configuration = system architecture where you are running make.
  148 # default machine configuration for ppc = none at this time.
  149 # default machine configuration for i386 = none at this time.
  150 # default machine configuration for arm = "S5L8900XRB".
  151 #
  152 ifndef TARGET_CONFIGS_UC
  153 ifdef TARGET_CONFIGS
  154         export TARGET_CONFIGS_UC = $(strip $(shell printf "%s" "$(TARGET_CONFIGS)" | $(TR) a-z A-Z))
  155         export MACHINE_CONFIG   = $(word 3, $(TARGET_CONFIGS_UC))
  156         export DEFAULT_KERNEL_CONFIG = $(word 1, $(TARGET_CONFIGS_UC))
  157 else
  158         # generate TARGET_CONFIGS using KERNEL_CONFIGS and ARCH_CONFIGS and MACHINE_CONFIG (which defaults to "DEFAULT")
  159         temp_list = $(foreach my_kern_config, $(KERNEL_CONFIGS), $(my_kern_config) arch_slot $(MACHINE_CONFIG))
  160         export TARGET_CONFIGS = $(strip $(foreach my_arch_config, $(ARCH_CONFIGS), $(subst arch_slot,$(my_arch_config),$(temp_list))))
  161         export TARGET_CONFIGS_UC := $(shell printf "%s" "$(TARGET_CONFIGS)" | $(TR) a-z A-Z)
  162         export MACHINE_CONFIG   = $(word 3, $(TARGET_CONFIGS_UC))
  163         export DEFAULT_KERNEL_CONFIG = $(word 1, $(TARGET_CONFIGS_UC))
  164 endif
  165 endif
  166 
  167 export MACHINE_CONFIG_LC := $(shell printf "%s" "$(MACHINE_CONFIG)" | $(TR) A-Z a-z)
  168 export KERNEL_CONFIG_LC := $(shell printf "%s" "$(KERNEL_CONFIG)" | $(TR) A-Z a-z)
  169 
  170 #
  171 # Kernel Configuration to install
  172 #
  173 #  supported install architecture : PPC I386 ARM
  174 #
  175 export INSTALL_TYPE     = $(DEFAULT_KERNEL_CONFIG)
  176 
  177 ifndef INSTALL_ARCHS
  178 export INSTALL_ARCHS    = $(strip $(foreach my_config, $(SUPPORTED_ARCH_CONFIGS), $(findstring $(my_config), $(TARGET_CONFIGS_UC))))
  179 export INSTALL_ARCHS_LC := $(shell printf "%s" "$(INSTALL_ARCHS)" | $(TR) A-Z a-z)
  180 endif
  181 
  182 export INSTALL_ARCH_DEFAULT     = PPC
  183 
  184 #
  185 # Standard defines list
  186 #
  187 export DEFINES = -DAPPLE -DKERNEL -DKERNEL_PRIVATE -DXNU_KERNEL_PRIVATE -DPRIVATE -D__MACHO__=1 -Dvolatile=__volatile $(IDENT)
  188 
  189 #
  190 # Compiler command
  191 #
  192 KCC  := $(CC)
  193 KC++ := $(CXX)
  194 
  195 #
  196 # Compiler warning flags
  197 #
  198 
  199 CWARNFLAGS_STD = \
  200         -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes \
  201         -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
  202         -Wshadow -Wcast-align -Wbad-function-cast -Wchar-subscripts -Winline \
  203         -Wnested-externs -Wredundant-decls
  204 
  205 export CWARNFLAGS ?= $(CWARNFLAGS_STD)
  206 
  207 MWARNFLAGS_STD = \
  208         -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes \
  209         -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
  210         -Wshadow -Wcast-align -Wbad-function-cast -Wchar-subscripts -Winline \
  211         -Wnested-externs -Wredundant-decls
  212 
  213 export MWARNFLAGS ?= $(MWARNFLAGS_STD)
  214 
  215 CXXWARNFLAGS_STD = \
  216         -Wall -Wno-format-y2k -W \
  217         -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
  218         -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls
  219 
  220 export CXXWARNFLAGS ?= $(CXXWARNFLAGS_STD)
  221 
  222 
  223 #
  224 # Setup for parallel sub-makes based on 2 times number of logical CPUs
  225 #
  226 ifndef MAKEJOBS
  227 export MAKEJOBS = --jobs=$(shell expr `/usr/sbin//sysctl -n hw.logicalcpu` \* 2)
  228 endif
  229 
  230 #
  231 # Default ARCH_FLAGS, for use with compiler/linker/assembler/mig drivers
  232 
  233 ARCH_FLAGS_PPC            = -arch ppc
  234 ARCH_FLAGS_I386           = -arch i386
  235 ARCH_FLAGS_ARM            = $($(addsuffix $(MACHINE_CONFIG),ARCH_FLAGS_ARM_))
  236 
  237 ARCH_FLAGS_ARM_LN2410SBC          = -arch arm
  238 ARCH_FLAGS_ARM_MX31ADS            = -arch armv6
  239 ARCH_FLAGS_ARM_INTEGRATORCP       = -arch armv6
  240 ARCH_FLAGS_ARM_S5I3000SMDK        = -arch armv6
  241 ARCH_FLAGS_ARM_S5L8900XFPGA       = -arch armv6
  242 ARCH_FLAGS_ARM_S5L8900XRB         = -arch armv6
  243 ARCH_FLAGS_ARM_OLOCREEK           = -arch arm
  244 
  245 #
  246 # Default CFLAGS
  247 #
  248 ifdef RC_CFLAGS
  249 export OTHER_CFLAGS     = $(subst $(addprefix -arch ,$(RC_ARCHS)),,$(RC_CFLAGS))
  250 endif
  251 
  252 export DSYMBUILDDIR = ./Contents/Resources/DWARF/
  253 
  254 #
  255 # We must not use -fno-keep-inline-functions, or it will remove the dtrace
  256 # probes from the kernel.
  257 #
  258 export CFLAGS_GEN = -static $(DEBUG_CFLAGS) -nostdinc -nostdlib -no-cpp-precomp \
  259         -fno-builtin -finline -msoft-float \
  260         -fsigned-bitfields $(OTHER_CFLAGS)
  261 
  262 export CFLAGS_RELEASE   = 
  263 export CFLAGS_DEVELOPMENT       =
  264 export CFLAGS_DEBUG     = 
  265 export CFLAGS_PROFILE   =  -pg
  266 
  267 ifeq ($(ARCH_CONFIG),ARM)
  268 BUILD_STABS = 1
  269 endif
  270 
  271 ifeq ($(BUILD_STABS),1)
  272 export CFLAGS_PPC       = -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED \
  273                                 -mno-altivec -gstabs+ -force_cpusubtype_ALL
  274 export CFLAGS_I386      = -Di386 -DI386 -D__I386__ \
  275                                 -DPAGE_SIZE_FIXED -gstabs+ -force_cpusubtype_ALL
  276 export CFLAGS_ARM       = -Darm -DARM -D__ARM__ -DPAGE_SIZE_FIXED \
  277         -fno-strict-aliasing -gstabs+ -fno-keep-inline-functions
  278 export BUILD_DWARF = 0
  279 export BUILD_STABS = 1
  280 else
  281 export CFLAGS_PPC       = -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED \
  282                                 -mno-altivec -gdwarf-2 -force_cpusubtype_ALL
  283 export CFLAGS_I386      = -Di386 -DI386 -D__I386__ \
  284                                 -DPAGE_SIZE_FIXED -gdwarf-2 -force_cpusubtype_ALL
  285 export CFLAGS_ARM       = -Darm -DARM -D__ARM__ -DPAGE_SIZE_FIXED \
  286         -fno-strict-aliasing -gdwarf-2 -fno-keep-inline-functions
  287 export BUILD_DWARF = 1
  288 export BUILD_STABS = 0
  289 endif
  290 ifeq (-arch armv6,$(ARCH_FLAGS_ARM))
  291 CFLAGS_ARM              += -mthumb
  292 endif
  293 
  294 export CFLAGS_RELEASEPPC = -O2 -mcpu=750 -mmultiple
  295 export CFLAGS_RELEASE_TRACEPPC = -O2 -mcpu=750 -mmultiple
  296 export CFLAGS_DEVELOPMENTPPC = -O2 -mcpu=750 -mmultiple
  297 export CFLAGS_DEBUGPPC = -O2 -mcpu=750 -mmultiple
  298 export CFLAGS_PROFILEPPC = -O2 -mcpu=750 -mmultiple
  299 
  300 export CFLAGS_RELEASEI386 = -Os
  301 export CFLAGS_DEVELOPMENTI386 = -Os
  302 export CFLAGS_DEBUGI386 = -Os
  303 export CFLAGS_PROFILEI386 = -Os
  304 
  305 export CFLAGS_RELEASEARM = -O2
  306 export CFLAGS_DEVELOPMENTARM = -O2
  307 export CFLAGS_DEBUGARM = -O2
  308 export CFLAGS_PROFILEARM = -O2
  309 
  310 export CFLAGS   = $(CFLAGS_GEN) \
  311                   $($(addsuffix $(MACHINE_CONFIG),MACHINE_FLAGS_)) \
  312                   $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
  313                   $($(addsuffix $(ARCH_CONFIG),CFLAGS_)) \
  314                   $($(addsuffix $(KERNEL_CONFIG),CFLAGS_)) \
  315                   $($(addsuffix $(ARCH_CONFIG), $(addsuffix $(KERNEL_CONFIG),CFLAGS_))) \
  316                   $(DEFINES)
  317 
  318 export MIGCC = $(CC)
  319 
  320 # Default C++ flags
  321 #
  322 CXXFLAGS_GEN  = -fno-rtti -fno-exceptions -fcheck-new -fapple-kext
  323 
  324 CXXFLAGS      = $(CXXFLAGS_GEN) \
  325                   $($(addsuffix $(ARCH_CONFIG),CXXFLAGS_)) \
  326                   $($(addsuffix $(KERNEL_CONFIG),CXXFLAGS_))
  327 
  328 #
  329 # Assembler command
  330 #
  331 AS      = $(CC)
  332 S_KCC   = $(CC)
  333 
  334 #
  335 # Default SFLAGS
  336 #
  337 export SFLAGS_GEN = -static -D__ASSEMBLER__ $(OTHER_CFLAGS)
  338 
  339 export SFLAGS_RELEASE   = 
  340 export SFLAGS_DEVELOPMENT       = 
  341 export SFLAGS_DEBUG     = 
  342 export SFLAGS_PROFILE   = 
  343 
  344 export SFLAGS_PPC       = $(CFLAGS_PPC) -force_cpusubtype_ALL
  345 export SFLAGS_I386      = $(CFLAGS_I386)
  346 export SFLAGS_ARM       = $(CFLAGS_ARM)
  347 
  348 export SFLAGS   = $(SFLAGS_GEN) \
  349                   $($(addsuffix $(MACHINE_CONFIG),MACHINE_FLAGS_)) \
  350                   $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
  351                   $($(addsuffix $(ARCH_CONFIG),SFLAGS_)) \
  352                   $($(addsuffix $(KERNEL_CONFIG),SFLAGS_)) \
  353                   $(DEFINES)
  354 
  355 #
  356 # Linker command
  357 #
  358 LD      = $(KC++) -nostdlib
  359 
  360 #
  361 # Default LDFLAGS
  362 #
  363 export LDFLAGS_COMPONENT_GEN = -static -r $(COMP_LDFLAGS_COMPONENT_GEN)
  364 
  365 export LDFLAGS_COMPONENT_RELEASE =  $(COMP_LDFLAGS_COMPONENT_RELEASE)
  366 export LDFLAGS_COMPONENT_DEVELOPMENT =  $(COMP_LDFLAGS_COMPONENT_DEVELOPMENT)
  367 export LDFLAGS_COMPONENT_DEBUG   =  $(COMP_LDFLAGS_COMPONENT_DEBUG)
  368 export LDFLAGS_COMPONENT_PROFILE =  $(COMP_LDFLAGS_COMPONENT_PROFILE)
  369 
  370 export LDFLAGS_COMPONENT_PPC    = $(COMP_LDFLAGS_COMPONENT_PPC) -force_cpusubtype_ALL
  371 export LDFLAGS_COMPONENT_I386   = $(COMP_LDFLAGS_COMPONENT_i386)
  372 export LDFLAGS_COMPONENT_ARM    = $(COMP_LDFLAGS_COMPONENT_ARM)
  373 
  374 export LDFLAGS_COMPONENT        = $(LDFLAGS_COMPONENT_GEN) \
  375                   $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
  376                   $($(addsuffix $(ARCH_CONFIG),LDFLAGS_COMPONENT_)) \
  377                   $($(addsuffix $(KERNEL_CONFIG),LDFLAGS_COMPONENT_))
  378 
  379 export LDFLAGS_KERNEL_GEN = \
  380         -static \
  381         -fapple-kext \
  382         -Wl,-e,__start \
  383         -Wl,-sectalign,__TEXT,__text,0x1000 \
  384         -Wl,-sectalign,__DATA,__common,0x1000 \
  385         -Wl,-sectalign,__DATA,__bss,0x1000 \
  386         -Wl,-sectcreate,__PRELINK,__text,/dev/null \
  387         -Wl,-sectcreate,__PRELINK,__symtab,/dev/null \
  388         -Wl,-sectcreate,__PRELINK,__info,/dev/null
  389 
  390 export LDFLAGS_KERNEL_RELEASE   =
  391 export LDFLAGS_KERNEL_DEVELOPMENT       =
  392 #  -noseglinkedit
  393 export LDFLAGS_KERNEL_DEBUG     = 
  394 export LDFLAGS_KERNEL_PROFILE   = 
  395 
  396 export LDFLAGS_KERNEL_PPC      = \
  397         -force_cpusubtype_ALL \
  398         -Wl,-new_linker \
  399         -Wl,-segaddr,__VECTORS,0x0 \
  400         -Wl,-segaddr,__HIB,0x7000  \
  401         -Wl,-segaddr,__TEXT,0xe000
  402  
  403 export LDFLAGS_KERNEL_I386     = \
  404         -Wl,-new_linker \
  405         -Wl,-segaddr,__HIB,0x100000 \
  406         -Wl,-segaddr,__TEXT,0x111000 
  407 
  408 export LDFLAGS_KERNEL_ARM     = \
  409         -Wl,-segaddr,__HIB,0xC0000000 \
  410         -Wl,-segaddr,__TEXT,0xC0008000
  411 
  412 export LDFLAGS_KERNEL   = $(LDFLAGS_KERNEL_GEN) \
  413                   $($(addsuffix $(MACHINE_CONFIG),MACHINE_FLAGS_)) \
  414                   $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_)) \
  415                   $($(addsuffix $(ARCH_CONFIG),LDFLAGS_KERNEL_)) \
  416                   $($(addsuffix $(KERNEL_CONFIG),LDFLAGS_KERNEL_))
  417 
  418 
  419 #
  420 # Default runtime libraries to be linked with the kernel
  421 #
  422 export LD_KERNEL_LIBS   = -lcc_kext
  423 
  424 #
  425 # Default INCFLAGS
  426 #
  427 export INCFLAGS_IMPORT  = $(patsubst %, -I$(OBJROOT)/EXPORT_HDRS/%, $(COMPONENT_IMPORT_LIST))
  428 export INCFLAGS_EXTERN  = -I$(OBJROOT)/EXTERN_HDRS -I$(SRCROOT)/EXTERNAL_HEADERS -I$(SRCROOT)/EXTERNAL_HEADERS/bsd
  429 export INCFLAGS_GEN     = -I$(SRCROOT)/$(COMPONENT) -I$(OBJROOT)/EXPORT_HDRS/$(COMPONENT)
  430 export INCFLAGS_POSIX   = -I$(OBJROOT)/EXPORT_HDRS/bsd
  431 export INCFLAGS_LOCAL   = -I.
  432 
  433 export INCFLAGS         = $(INCFLAGS_LOCAL) $(INCFLAGS_GEN) $(INCFLAGS_IMPORT) $(INCFLAGS_EXTERN) $(INCFLAGS_MAKEFILE)
  434 
  435 #
  436 # Default MIGFLAGS
  437 #
  438 export MIGFLAGS = $(DEFINES) $(INCFLAGS) $($(addsuffix $(ARCH_CONFIG),CFLAGS_)) $($(addsuffix $(ARCH_CONFIG),ARCH_FLAGS_))
  439 
  440 #
  441 # Default VPATH
  442 #
  443 empty:=
  444 space:= $(empty) $(empty)
  445 export VPATH_IMPORT     = $(subst $(space),:,$(patsubst %,$(OBJROOT)/EXPORT_HDRS/%,$(strip $(COMPONENT_IMPORT_LIST)))):
  446 export VPATH_EXTERN     = $(OBJROOT)/EXTERN_HDRS:
  447 export VPATH_GEN        = .:$(SOURCE):
  448 
  449 export VPATH            = $(VPATH_GEN)$(VPATH_IMPORT)$(VPATH_EXTERN)$(VPATH_MAKEFILE)
  450 
  451 #
  452 # Macros that control installation of kernel and its header files
  453 #
  454 # install flags for header files
  455 # 
  456 INSTALL_FLAGS = -c -m 0444
  457 FILE_INSTALL_FLAGS = -c -m 0644
  458 DATA_INSTALL_FLAGS = -c -m 0644
  459 
  460 #
  461 # Header file destinations
  462 #
  463 FRAMEDIR = System/Library/Frameworks
  464 ifndef INCDIR
  465     INCDIR = /usr/include
  466 endif
  467 ifndef LCLDIR
  468     LCLDIR = $(FRAMEDIR)/System.framework/Versions/B/PrivateHeaders
  469 endif
  470 
  471 KINCVERS = A
  472 KINCFRAME = $(FRAMEDIR)/Kernel.framework
  473 KINCDIR = $(KINCFRAME)/Versions/$(KINCVERS)/Headers
  474 KPINCDIR = $(KINCFRAME)/Versions/$(KINCVERS)/PrivateHeaders
  475 KRESDIR = $(KINCFRAME)/Versions/$(KINCVERS)/Resources
  476 
  477 XNU_PRIVATE_UNIFDEF = -UMACH_KERNEL_PRIVATE -UBSD_KERNEL_PRIVATE -UIOKIT_KERNEL_PRIVATE -ULIBKERN_KERNEL_PRIVATE -ULIBSA_KERNEL_PRIVATE -UPEXPERT_KERNEL_PRIVATE -UXNU_KERNEL_PRIVATE
  478 
  479 SPINCFRAME_UNIFDEF = $(XNU_PRIVATE_UNIFDEF) -UKERNEL_PRIVATE -UKERNEL -DPRIVATE -U_OPEN_SOURCE_
  480 SINCFRAME_UNIFDEF  = $(XNU_PRIVATE_UNIFDEF) -UKERNEL_PRIVATE -UKERNEL -UPRIVATE -D_OPEN_SOURCE_
  481 KPINCFRAME_UNIFDEF = $(XNU_PRIVATE_UNIFDEF) -DKERNEL_PRIVATE -DPRIVATE -DKERNEL -U_OPEN_SOURCE_
  482 KINCFRAME_UNIFDEF  = $(XNU_PRIVATE_UNIFDEF) -UKERNEL_PRIVATE -UPRIVATE -DKERNEL -D_OPEN_SOURCE_
  483 
  484 #
  485 # Compononent Header file destinations
  486 #
  487 EXPDIR = EXPORT_HDRS/$(COMPONENT)
  488 
  489 #
  490 # Strip Flags
  491 #
  492 export STRIP_FLAGS_RELEASE      = -S -x 
  493 export STRIP_FLAGS_DEVELOPMENT  = -S -x 
  494 export STRIP_FLAGS_RELEASE_TRACE        = -S -x 
  495 export STRIP_FLAGS_DEBUG        = -S 
  496 export STRIP_FLAGS_DEBUG_TRACE  = -S 
  497 export STRIP_FLAGS_PROFILE      = -S -x
  498 
  499 export STRIP_FLAGS      = $($(addsuffix $(KERNEL_CONFIG),STRIP_FLAGS_)) 
  500 
  501 #
  502 # dsymutil flags
  503 #
  504 export DSYMUTIL_FLAGS_I386 = --arch=i386
  505 export DSYMUTIL_FLAGS_PPC = --arch=ppc
  506 export DSYMUTIL_FLAGS_ARM = --arch=arm
  507 
  508 export DSYMUTIL_FLAGS = $($(addsuffix $(ARCH_CONFIG),DSYMUTIL_FLAGS_))
  509 
  510 #
  511 # Man Page destination
  512 #
  513 MANDIR = usr/share/man
  514 
  515 ##
  516 # Verbosity
  517 ##
  518 ifeq ($(RC_XBS),YES)
  519 VERBOSE = YES
  520 else
  521 VERBOSE = NO
  522 endif
  523 
  524 ifeq ($(VERBOSE),YES)
  525 _v = 
  526 else
  527 _v = @
  528 endif
  529 
  530 #
  531 #  This must be here before any rules are possibly defined by the
  532 #  machine dependent makefile fragment so that a plain "make" command
  533 #  always works.  The config program will emit an appropriate rule to
  534 #  cause "all" to depend on every kernel configuration it generates.
  535 #
  536 
  537 default: all
  538 
  539 # vim: set ft=make:

Cache object: ac03f40774ba5b4619b5300d2a8514ff


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.