mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../i386/svr4 ${.CURDIR}/../../svr4
|
|
KMOD= svr4
|
|
SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_global.h opt_vmpage.h \
|
|
vnode_if.h imgact_svr4.c svr4_signal.c svr4_fcntl.c svr4_misc.c \
|
|
svr4_ioctl.c svr4_stat.c svr4_filio.c svr4_ttold.c svr4_termios.c \
|
|
svr4_stream.c svr4_socket.c svr4_sockio.c svr4_machdep.c \
|
|
svr4_resource.c svr4_ipc.c opt_svr4.h
|
|
OBJS= svr4_locore.o
|
|
NOMAN=1
|
|
MAN8= svr4.8
|
|
CFLAGS+= -D_KERNEL
|
|
MAINTAINER= newton@freebsd.org
|
|
|
|
EXPORT_SYMS=_svr4_mod
|
|
CLEANFILES= svr4_assym.h svr4_genassym.o opt_svr4.h
|
|
|
|
svr4.h: opt_global.h opt_svr4.h
|
|
|
|
svr4_assym.h: svr4_genassym.o
|
|
genassym -o ${.TARGET} ${.ALLSRC}
|
|
|
|
svr4_locore.o: svr4_locore.s svr4_assym.h
|
|
${CC} -c -x assembler-with-cpp -DLOCORE -D_KERNEL ${CFLAGS} \
|
|
${.IMPSRC} -o ${.TARGET}
|
|
|
|
svr4_genassym.o: svr4_genassym.c svr4.h @ machine
|
|
${CC} -c ${CFLAGS} -U_KERNEL ${.IMPSRC}
|
|
|
|
opt_compat.h:
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
opt_svr4.h:
|
|
echo "#define COMPAT_SVR4 1" > opt_svr4.h
|
|
.if defined(DEBUG)
|
|
echo "#define DEBUG_SVR4 1" >> opt_svr4.h
|
|
.endif
|
|
|
|
opt_global.h:
|
|
touch opt_global.h
|
|
|
|
afterinstall:
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
${.CURDIR}/svr4.sh ${DESTDIR}/usr/sbin/svr4
|
|
|
|
.include <bsd.kmod.mk>
|