#
# 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) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o

all: kernel.o head.o init_task.o

O_TARGET := kernel.o
O_OBJS   := chead.o setup.o irq.o
#O_OBJS   := chead.o entry.o ptrace.o setup.o irq.o process.o l4_idle.o \
#	    resource.o signal.o time.o traps.o sched.o sys_l4_i386.o \
#	    unimpl.o
#O_OBJS   := process.o signal.o entry.o traps.o irq.o  \
#            ptrace.o setup.o time.o sys_i386.o
# OX_OBJS  := i386_ksyms.o

ifdef CONFIG_PCI
O_OBJS += bios32.o
endif

head.o: head.S $(TOPDIR)/include/linux/tasks.h
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $*.S -o $*.o


l4_idle.o: l4_idle.S
	$(CC) -E -D__ASSEMBLY__ -traditional -c $*.S -o $*.pre
	gasp -D__ASSEMBLY__ $*.pre -o $*.s
	$(CC) -c -D__ASSEMBLY__ -traditional -c $*.s -o $*.o

# No mca, mtrr, apm, smp, apic

include $(TOPDIR)/Rules.make
