[BACK]Return to Makefile CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / arch / ppc64 / kernel

File: [Development] / linux-2.4-xfs / arch / ppc64 / kernel / Makefile (download)

Revision 1.3, Thu Jan 29 04:23:20 2004 UTC (13 years, 8 months ago) by nathans
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines

Merge up to 2.4.25-pre7

#
# 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...

USE_STANDARD_AS_RULE    := true

EXTRA_CFLAGS = -mno-minimal-toc

KHEAD := head.o

all: $(KHEAD) kernel.o

O_TARGET := kernel.o

export-objs         := ppc_ksyms.o setup.o vio.o viopath.o

obj-y               :=	ppc_ksyms.o setup.o entry.o traps.o irq.o idle.o \
			time.o process.o signal.o syscalls.o misc.o ptrace.o \
			align.o semaphore.o bitops.o stab.o htab.o pacaData.o \
			LparData.o udbg.o binfmt_elf32.o sys_ppc32.o sys32.o \
			ioctl32.o ptrace32.o signal32.o open_pic.o xics.o \
			pmc.o mf_proc.o proc_pmc.o proc_pcifr.o iSeries_setup.o \
			ItLpQueue.o hvCall.o mf.o HvLpEvent.o ras.o \
			iSeries_proc.o HvCall.o flight_recorder.o HvLpConfig.o \
			rtc.o perfmon.o cputable.o vio.o

obj-$(CONFIG_PCI) +=  pci.o pci_dn.o pci_dma.o pSeries_lpar.o pSeries_hvCall.o

ifeq ($(CONFIG_PPC_ISERIES),y)
obj-$(CONFIG_PCI) += iSeries_pci.o iSeries_pci_reset.o iSeries_IoMmTable.o iSeries_irq.o iSeries_VpdInfo.o XmPciLpEvent.o 
obj-$(CONFIG_VIOPATH) += viopath.o
endif
ifeq ($(CONFIG_PPC_PSERIES),y)
obj-$(CONFIG_PCI) += pSeries_pci.o eeh.o

obj-y += nvram.o rtasd.o
endif

obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o

obj-$(CONFIG_SCANLOG) += scanlog.o

obj-$(CONFIG_LPARCFG) += lparcfg.o

obj-$(CONFIG_KGDB) += ppc-stub.o

obj-$(CONFIG_SMP) += smp.o

obj-y += prom.o lmb.o rtas.o rtas-proc.o chrp_setup.o i8259.o

include $(TOPDIR)/Rules.make

#
# This is just to get the dependencies...
#

head.o: head.S ppc_defs.h

ppc_defs.h: mk_defs.c ppc_defs.head \
		$(TOPDIR)/include/asm/mmu.h \
		$(TOPDIR)/include/asm/processor.h \
		$(TOPDIR)/include/asm/pgtable.h \
		$(TOPDIR)/include/asm/ptrace.h
	$(CC) $(CFLAGS) -S mk_defs.c
	cp ppc_defs.head ppc_defs.h
# for bk, this way we can write to the file even if it's not checked out
	chmod u+w ppc_defs.h
	grep '^#define' mk_defs.s >> ppc_defs.h
	rm mk_defs.s

checks: checks.c
	$(HOSTCC) -I$(HPATH) $(HOSTCFLAGS) -D__KERNEL__ -fno-builtin -o checks checks.c
	./checks