minix/kernel/arch/i386/Makefile.inc
Ben Gras b41df2eb0d kernel: mon_return cleanup
cleanup of boot monitor related code.
2012-04-25 17:59:43 +02:00

48 lines
933 B
Makefile

# Makefile for arch-dependent kernel code
.include <bsd.own.mk>
HERE=${.CURDIR}/arch/${ARCH}
.PATH: ${HERE}
SRCS+= arch_do_vmctl.c \
arch_clock.c \
do_iopenable.c \
do_readbios.c \
do_sdevio.c \
exception.c \
i8259.c \
io_inb.S \
io_inl.S \
io_intr.S \
io_inw.S \
io_outb.S \
io_outl.S \
io_outw.S \
klib.S \
klib16.S \
multiboot.S \
memory.c \
oxpcie.c \
protect.c \
arch_system.c \
pre_init.c
apic_asm.d klib.d mpx.d: procoffsets.h
# It's OK to hardcode the arch as i386 here as this and procoffsets.cf
# are i386-specific.
TMP=procoffsets.h.tmp
INCLS=../include/arch/i386/include/
PROCOFFSETSCF=procoffsets.cf
procoffsets.h: $(PROCOFFSETSCF) kernel.h proc.h $(INCLS)/stackframe.h $(INCLS)/archtypes.h
${_MKTARGET_CREATE}
cat ${HERE}/$(PROCOFFSETSCF) | \
${TOOL_GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} >$TMP && \
mv -f $TMP $@
.ifdef CONFIG_SMP
SRCS += arch_smp.c trampoline.S
.endif