]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/svr4/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / modules / svr4 / Makefile
1 # $FreeBSD$
2
3 .PATH:  ${.CURDIR}/../../${MACHINE_ARCH}/svr4 ${.CURDIR}/../../compat/svr4
4 KMOD=   svr4
5 SRCS=   svr4_sysent.c svr4_sysvec.c opt_compat.h opt_mac.h opt_svr4.h \
6         vnode_if.h imgact_svr4.c svr4_signal.c svr4_fcntl.c \
7         svr4_misc.c svr4_ioctl.c svr4_stat.c svr4_filio.c svr4_ttold.c \
8         svr4_termios.c svr4_stream.c svr4_socket.c svr4_sockio.c \
9         svr4_machdep.c svr4_resource.c svr4_ipc.c
10 OBJS=   svr4_locore.o 
11
12 CLEANFILES=     svr4_assym.h svr4_genassym.o
13
14 svr4_assym.h: svr4_genassym.o
15 .if exists(@)
16 svr4_assym.h: @/kern/genassym.sh
17 .endif
18         sh @/kern/genassym.sh svr4_genassym.o > ${.TARGET}
19
20 svr4_locore.o: svr4_locore.s svr4_assym.h
21         ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
22                 ${.IMPSRC} -o ${.TARGET}
23
24 svr4_genassym.o: svr4_genassym.c svr4.h @ machine
25         ${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}
26
27 .if !defined(KERNBUILDDIR)
28 opt_compat.h:
29         echo "#define COMPAT_43 1" > opt_compat.h
30
31 .if defined(DEBUG)
32 opt_svr4.h:
33         echo "#define DEBUG_SVR4 1" > opt_svr4.h
34 .endif
35 .endif
36
37 .include <bsd.kmod.mk>