linux-old/arch/s390x/kernel/Makefile
<<
>>
Prefs
   1#
   2# Makefile for the linux kernel.
   3#
   4# Note! Dependencies are done automagically by 'make dep', which also
   5# removes any old dependencies. DON'T put your own dependencies here
   6# unless it's something special (ie not a .c file).
   7#
   8# Note 2! The CFLAGS definitions are now in the main makefile...
   9
  10.S.o:
  11        $(CC) $(AFLAGS) -traditional -c $< -o $*.o
  12
  13all: asm-offsets.h kernel.o head.o init_task.o
  14
  15O_TARGET        := kernel.o
  16
  17export-objs     := debug.o ebcdic.o irq.o s390_ext.o smp.o s390_ksyms.o \
  18                   exec32.o
  19
  20obj-y           := entry.o bitmap.o traps.o time.o process.o irq.o \
  21                   setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
  22                   semaphore.o s390fpu.o reipl.o s390_ext.o debug.o
  23
  24obj-$(CONFIG_MODULES)           += s390_ksyms.o
  25obj-$(CONFIG_SMP)               += smp.o
  26
  27#
  28# Kernel debugging
  29#
  30obj-$(CONFIG_REMOTE_DEBUG)      += gdb-stub.o #gdb-low.o 
  31
  32obj-$(CONFIG_S390_SUPPORT)      += linux32.o signal32.o ioctl32.o wrapper32.o exec32.o exec_domain32.o
  33obj-$(CONFIG_BINFMT_ELF32)      += binfmt_elf32.o
  34
  35.PHONY: asm-offsets.h
  36
  37entry.S: asm-offsets.h
  38#
  39# This is just to get the dependencies...
  40#
  41binfmt_elf32.o: $(TOPDIR)/fs/binfmt_elf.c
  42
  43#
  44# Automatic offset generation for assembler files.
  45#
  46asm-offsets.h: asm-offsets.c
  47        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o - | grep -- "->" | \
  48        (echo "#ifndef __ASM_OFFSETS_H__"; \
  49         echo "#define __ASM_OFFSETS_H__"; \
  50         echo "/*"; \
  51         echo " * DO NOT MODIFY"; \
  52         echo " *"; \
  53         echo " * This file was generated by arch/s390/kernel/Makefile"; \
  54         echo " */"; \
  55         sed -e "s:^->\([^ ]*\) \([^ ]*\) \(.*\):#define \\1 \\2 /* \\3*/:" \
  56             -e "s:->::"; \
  57         echo "#endif" \
  58        ) > asm-offsets.h
  59
  60clean:
  61        rm -f asm-offsets.h
  62
  63include $(TOPDIR)/Rules.make
  64
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.