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