2 # Makefile for the linux kernel.
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).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
11 $(CC) $(AFLAGS) -traditional -c $< -o $*.o
13 all: asm-offsets.h kernel.o head.o init_task.o
17 export-objs := debug.o ebcdic.o irq.o s390_ext.o smp.o s390_ksyms.o
18 obj-y := entry.o bitmap.o traps.o time.o process.o irq.o \
19 setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
20 semaphore.o s390fpu.o reipl.o s390_ext.o debug.o
22 obj-$(CONFIG_MODULES) += s390_ksyms.o
23 obj-$(CONFIG_SMP) += smp.o
28 obj-$(CONFIG_REMOTE_DEBUG) += gdb-stub.o #gdb-low.o
32 entry.S: asm-offsets.h
35 # Automatic offset generation for assembler files.
37 asm-offsets.h: asm-offsets.c
38 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o - | grep -- "->" | \
39 (echo "#ifndef __ASM_OFFSETS_H__"; \
40 echo "#define __ASM_OFFSETS_H__"; \
42 echo " * DO NOT MODIFY"; \
44 echo " * This file was generated by arch/s390/kernel/Makefile"; \
46 sed -e "s:^->\([^ ]*\) \([^ ]*\) \(.*\):#define \\1 \\2 /* \\3*/:" \
54 include $(TOPDIR)/Rules.make