Linux Audio

Check our new training course

Embedded Linux Audio

Check our new training course
with Creative Commons CC-BY-SA
lecture materials

Bootlin logo

Elixir Cross Referencer

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

ifdef SMP
.S.o:
	$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
else
.S.o:
	$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
endif

all: __KEEPMAKEFILEO__B.o __KEEPMAKEFILEO__C.o __KEEPMAKEFILEO__D.o

O_TARGET := kernel.o
O_OBJS   := process.o signal.o entry.o traps.o irq.o vm86.o \
            ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o
OX_OBJS  := i386_ksyms.o

ifdef CONFIG_PCI
O_OBJS += bios32.o
endif

ifdef CONFIG_MCA
O_OBJS += mca.o
endif

ifdef SMP

O_OBJS += smp.o trampoline.o

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

else

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

endif

include $(TOPDIR)/Rules.make