Back to home page

LXR

 
 

    


0001 #
0002 # Makefile for the linux kernel.
0003 #
0004 
0005 ccflags-y := -fno-function-sections -fno-data-sections
0006 
0007 obj-y                          := main.o version.o mounts.o
0008 ifneq ($(CONFIG_BLK_DEV_INITRD),y)
0009 obj-y                          += noinitramfs.o
0010 else
0011 obj-$(CONFIG_BLK_DEV_INITRD)   += initramfs.o
0012 endif
0013 obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o
0014 
0015 ifneq ($(CONFIG_ARCH_INIT_TASK),y)
0016 obj-y                          += init_task.o
0017 endif
0018 
0019 mounts-y                        := do_mounts.o
0020 mounts-$(CONFIG_BLK_DEV_RAM)    += do_mounts_rd.o
0021 mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o
0022 mounts-$(CONFIG_BLK_DEV_MD)     += do_mounts_md.o
0023 
0024 # dependencies on generated files need to be listed explicitly
0025 $(obj)/version.o: include/generated/compile.h
0026 
0027 # compile.h changes depending on hostname, generation number, etc,
0028 # so we regenerate it always.
0029 # mkcompile_h will make sure to only update the
0030 # actual file if its content has changed.
0031 
0032        chk_compile.h = :
0033  quiet_chk_compile.h = echo '  CHK     $@'
0034 silent_chk_compile.h = :
0035 include/generated/compile.h: FORCE
0036         @$($(quiet)chk_compile.h)
0037         $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
0038         "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)"