3 .PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
8 SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \
9 linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
10 linux_machdep.c linux_misc.c linux_signal.c \
11 linux_socket.c linux_stats.c linux_sysctl.c linux_sysent.c \
12 linux_sysvec.c linux_time.c linux_vdso.c linux_timer.c \
13 opt_inet6.h opt_compat.h opt_kdtrace.h opt_posix.h opt_usb.h \
14 vnode_if.h device_if.h bus_if.h assym.s \
16 DPSRCS= linux_genassym.c
19 SRCS+= opt_kstack_pages.h opt_nfs.h opt_apic.h opt_hwpmc_hooks.h
21 CLEANFILES= linux_assym.h linux_genassym.o linux_locore.o
25 linux_assym.h: linux_genassym.o
26 sh ${SYSDIR}/kern/genassym.sh linux_genassym.o > ${.TARGET}
28 linux_locore.o: linux_locore.s linux_assym.h
29 ${CC} -x assembler-with-cpp -DLOCORE -shared -mcmodel=small \
30 -pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc \
31 -Wl,-T${.CURDIR}/../../${MACHINE_CPUARCH}/linux/${VDSO}.lds.s \
32 -Wl,-soname=${VDSO}.so.1,-fPIC,-warn-common -nostdlib \
33 ${.IMPSRC} -o ${.TARGET}
35 ${VDSO}.so: linux_locore.o
36 ${OBJCOPY} --input-target binary --output-target elf64-x86-64-freebsd \
37 -S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET}
39 linux_support.o: assym.s linux_assym.h
40 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
41 ${.IMPSRC} -o ${.TARGET}
44 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
46 .if !defined(KERNBUILDDIR)
55 .include <bsd.kmod.mk>