1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1999-01-30 01:29:48 -05:00
|
|
|
|
2000-01-10 03:48:11 -05:00
|
|
|
MAINTAINER= newton@FreeBSD.org
|
|
|
|
|
|
2001-10-04 10:13:16 -04:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/svr4 ${.CURDIR}/../../compat/svr4
|
1999-01-30 01:29:48 -05:00
|
|
|
KMOD= svr4
|
2002-08-11 21:36:20 -04:00
|
|
|
SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_mac.h opt_svr4.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
|
1999-01-30 01:29:48 -05:00
|
|
|
OBJS= svr4_locore.o
|
|
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
CLEANFILES= svr4_assym.h svr4_genassym.o
|
1999-12-08 05:51:17 -05:00
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
svr4_assym.h: svr4_genassym.o
|
2000-06-03 03:40:19 -04:00
|
|
|
.if exists(@)
|
2001-01-06 09:00:42 -05:00
|
|
|
svr4_assym.h: @/kern/genassym.sh
|
2000-06-03 03:40:19 -04:00
|
|
|
.endif
|
|
|
|
|
sh @/kern/genassym.sh svr4_genassym.o > ${.TARGET}
|
1999-01-30 01:29:48 -05:00
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
svr4_locore.o: svr4_locore.s svr4_assym.h
|
2000-01-09 05:16:12 -05:00
|
|
|
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
|
1999-01-30 01:29:48 -05:00
|
|
|
${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
2001-01-06 09:00:42 -05:00
|
|
|
svr4_genassym.o: svr4_genassym.c svr4.h @ machine
|
2002-01-09 22:52:54 -05:00
|
|
|
${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
|
1999-01-30 01:29:48 -05:00
|
|
|
|
|
|
|
|
opt_compat.h:
|
|
|
|
|
echo "#define COMPAT_43 1" > opt_compat.h
|
|
|
|
|
|
1999-12-08 05:51:17 -05:00
|
|
|
.if defined(DEBUG)
|
2001-02-04 03:23:14 -05:00
|
|
|
opt_svr4.h:
|
|
|
|
|
echo "#define DEBUG_SVR4 1" > opt_svr4.h
|
1999-12-08 05:51:17 -05:00
|
|
|
.endif
|
|
|
|
|
|
2000-05-26 21:14:33 -04:00
|
|
|
.include <bsd.kmod.mk>
|