49 lines
947 B
Makefile
49 lines
947 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_int86.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
|
|
|
|
|