1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-01-30 06:29:48 +00:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../i386/svr4 ${.CURDIR}/../../svr4
|
|
|
|
KMOD= svr4
|
1999-12-08 10:51:17 +00:00
|
|
|
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 \
|
1999-12-08 17:27:40 +00:00
|
|
|
svr4_resource.c svr4_ipc.c opt_svr4.h
|
1999-01-30 06:29:48 +00:00
|
|
|
OBJS= svr4_locore.o
|
|
|
|
NOMAN=1
|
|
|
|
MAN8= svr4.8
|
1999-09-01 00:32:18 +00:00
|
|
|
MAINTAINER= newton@freebsd.org
|
1999-01-30 06:29:48 +00:00
|
|
|
|
|
|
|
EXPORT_SYMS=_svr4_mod
|
1999-12-23 21:19:32 +00:00
|
|
|
CLEANFILES= svr4_assym.h svr4_genassym.o opt_svr4.h
|
1999-01-30 06:29:48 +00:00
|
|
|
|
1999-12-08 10:51:17 +00:00
|
|
|
svr4.h: opt_global.h opt_svr4.h
|
|
|
|
|
1999-12-23 21:19:32 +00:00
|
|
|
svr4_assym.h: svr4_genassym.o
|
2000-01-09 10:16:12 +00:00
|
|
|
genassym ${.ALLSRC} > ${.TARGET}
|
1999-01-30 06:29:48 +00:00
|
|
|
|
|
|
|
svr4_locore.o: svr4_locore.s svr4_assym.h
|
2000-01-09 10:16:12 +00:00
|
|
|
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
|
1999-01-30 06:29:48 +00:00
|
|
|
${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
svr4_genassym.o: svr4_genassym.c svr4.h @ machine
|
2000-01-09 10:16:12 +00:00
|
|
|
${CC} -c ${CFLAGS} ${.IMPSRC}
|
1999-01-30 06:29:48 +00:00
|
|
|
|
|
|
|
opt_compat.h:
|
|
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
|
1999-12-08 10:51:17 +00:00
|
|
|
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
|
|
|
|
|
1999-01-30 06:29:48 +00:00
|
|
|
afterinstall:
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1999-09-05 05:19:08 +00:00
|
|
|
${.CURDIR}/svr4.sh ${DESTDIR}/usr/sbin/svr4
|
1999-01-30 06:29:48 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|