OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [s390x/] [kernel/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log

#
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...

.S.o:
        $(CC) $(AFLAGS) -traditional -c $< -o $*.o

all: asm-offsets.h kernel.o head.o init_task.o

O_TARGET        := kernel.o

export-objs     := debug.o ebcdic.o irq.o s390_ext.o smp.o s390_ksyms.o \
                   exec32.o

obj-y           := entry.o bitmap.o traps.o time.o process.o irq.o \
                   setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
                   semaphore.o s390fpu.o reipl.o s390_ext.o debug.o

obj-$(CONFIG_MODULES)           += s390_ksyms.o
obj-$(CONFIG_SMP)               += smp.o

#
# Kernel debugging
#
obj-$(CONFIG_REMOTE_DEBUG)      += gdb-stub.o #gdb-low.o 

obj-$(CONFIG_S390_SUPPORT)      += linux32.o signal32.o ioctl32.o wrapper32.o exec32.o exec_domain32.o
obj-$(CONFIG_BINFMT_ELF32)      += binfmt_elf32.o

.PHONY: asm-offsets.h

entry.S: asm-offsets.h
#
# This is just to get the dependencies...
#
binfmt_elf32.o: $(TOPDIR)/fs/binfmt_elf.c

#
# Automatic offset generation for assembler files.
#
asm-offsets.h: asm-offsets.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -S $< -o - | grep -- "->" | \
        (echo "#ifndef __ASM_OFFSETS_H__"; \
         echo "#define __ASM_OFFSETS_H__"; \
         echo "/*"; \
         echo " * DO NOT MODIFY"; \
         echo " *"; \
         echo " * This file was generated by arch/s390/kernel/Makefile"; \
         echo " */"; \
         sed -e "s:^->\([^ ]*\) \([^ ]*\) \(.*\):#define \\1 \\2 /* \\3*/:" \
             -e "s:->::"; \
         echo "#endif" \
        ) > asm-offsets.h

clean:
        rm -f asm-offsets.h

include $(TOPDIR)/Rules.make

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.