Makefile 586 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#
# Makefile for the linux kernel.
#

O_TARGET := init.o

obj-y    := main.o version.o do_mounts.o

include $(TOPDIR)/Rules.make

# dependencies on generated files need to be listed explicitly

13
$(obj)/version.o: $(objtree)/include/linux/compile.h
14

15 16 17
# compile.h changes depending on hostname, generation number, etc,
# so we regenerate it always.
# mkcompile_h will make sure to only update the
18
# actual file if its content has changed.
19

20
$(objtree)/include/linux/compile.h: FORCE
21
	@echo -n '  Generating $@'
22
	@$(srctree)/scripts/mkcompile_h $@ "$(ARCH)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"