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
|
2009-06-06 17:01:44 +00:00
|
|
|
SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_svr4.h \
|
2006-01-26 19:21:27 +00:00
|
|
|
vnode_if.h imgact_svr4.c svr4_signal.c svr4_fcntl.c \
|
2009-05-08 20:06:37 +00:00
|
|
|
svr4_misc.c svr4_ioctl.c svr4_stat.c svr4_filio.c \
|
2002-08-12 01:36:20 +00:00
|
|
|
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
|
|
|
|
|
2009-06-08 19:57:35 +00:00
|
|
|
SRCS+= opt_ktrace.h opt_sysvipc.h
|
2009-02-12 14:44:15 +00:00
|
|
|
|
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
|
|
|
|
2008-09-15 15:09:35 +00:00
|
|
|
.if !defined(KERNBUILDDIR) && defined(DEBUG)
|
2001-02-04 08:23:14 +00:00
|
|
|
opt_svr4.h:
|
2008-09-01 23:59:00 +00:00
|
|
|
echo "#define DEBUG_SVR4 1" > ${.TARGET}
|
1999-12-08 10:51:17 +00:00
|
|
|
.endif
|
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|