1 # $FreeBSD: src/sys/modules/svr4/Makefile,v 1.27 2002/08/12 01:36:20 rwatson Exp $
2
3 MAINTAINER= newton@FreeBSD.org
4
5 .PATH: ${.CURDIR}/../../${MACHINE_ARCH}/svr4 ${.CURDIR}/../../compat/svr4
6 KMOD= svr4
7 SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_mac.h opt_svr4.h \
8 opt_vmpage.h vnode_if.h imgact_svr4.c svr4_signal.c svr4_fcntl.c \
9 svr4_misc.c svr4_ioctl.c svr4_stat.c svr4_filio.c svr4_ttold.c \
10 svr4_termios.c svr4_stream.c svr4_socket.c svr4_sockio.c \
11 svr4_machdep.c svr4_resource.c svr4_ipc.c
12 OBJS= svr4_locore.o
13
14 CLEANFILES= svr4_assym.h svr4_genassym.o
15
16 svr4_assym.h: svr4_genassym.o
17 .if exists(@)
18 svr4_assym.h: @/kern/genassym.sh
19 .endif
20 sh @/kern/genassym.sh svr4_genassym.o > ${.TARGET}
21
22 svr4_locore.o: svr4_locore.s svr4_assym.h
23 ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
24 ${.IMPSRC} -o ${.TARGET}
25
26 svr4_genassym.o: svr4_genassym.c svr4.h @ machine
27 ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
28
29 opt_compat.h:
30 echo "#define COMPAT_43 1" > opt_compat.h
31
32 .if defined(DEBUG)
33 opt_svr4.h:
34 echo "#define DEBUG_SVR4 1" > opt_svr4.h
35 .endif
36
37 .include <bsd.kmod.mk>
Cache object: 39ee4b0fc2ac2d345bddd91a18bbfe2e
|