xref: /freebsd/lib/libcompat/Makefile (revision 5ebc7e6281887681c3a348a5a4c902e262ccd656)
1#	@(#)Makefile	8.1 (Berkeley) 6/4/93
2
3LIB=compat
4CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS
5AINC=	-I${.CURDIR}/../libc/${MACHINE}
6NOPIC=
7
8.PATH:	${.CURDIR}/4.1/${MACHINE} ${.CURDIR}/4.1 \
9	${.CURDIR}/4.3/${MACHINE} ${.CURDIR}/4.3 \
10	${.CURDIR}/4.4/${MACHINE} ${.CURDIR}/4.4 \
11	${.CURDIR}/regexp \
12	${.CURDIR}/SysV
13
14# compat 4.1 sources
15# XXX MISSING:	tell.c vlimit.c vtimes.c
16SRCS=	ascftime.c cftime.c ftime.c getpw.c gtty.c stty.c
17
18.if (${MACHINE} == "vax")
19SRCS+=	reset.s
20.endif
21
22MAN3+=	4.1/ftime.3 4.1/getpw.3 4.1/stty.3 4.1/vlimit.3 4.1/vtimes.3
23MAN3+=	4.1/cftime.3
24
25MLINKS+=stty.3 gtty.3
26MLINKS+=cftime.3 ascftime.3
27
28# compat 4.3 sources
29# XXX MISSING:	ecvt.c gcvt.c sibuf.c sobuf.c strout.c
30SRCS+=	cfree.c lsearch.c regex.c rexec.c
31
32.if	(${MACHINE} == "hp300" || ${MACHINE} == "luna68k")
33SRCS+=	insque.s remque.s
34.elif	(${MACHINE} == "i386")
35SRCS+=	insque.c remque.c
36.elif	(${MACHINE} == "mips")
37SRCS+=	insque.c remque.c
38.elif	(${MACHINE} == "sparc")
39SRCS+=	insque.c remque.c
40.elif	(${MACHINE} == "tahoe")
41SRCS+=	nargs.s insque.s remque.s
42.elif	(${MACHINE} == "vax")
43SRCS+=	nargs.s insque.s remque.s
44.endif
45
46# XXX MISSING:	ecvt.0
47MAN3+=	4.3/insque.3 4.3/lsearch.3 4.3/re_comp.3 4.3/rexec.3
48
49# XXX MISSING:	ecvt.3, so can't MLINK
50#MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3
51MLINKS+=insque.3 remque.3
52MLINKS+=re_comp.3 re_exec.3
53
54# compat 4.4 sources
55SRCS+=	cuserid.c
56MAN3+=	4.4/cuserid.3
57
58# regexp sources
59SRCS+=	regerror.c regexp.c regsub.c
60
61MAN3+=	regexp/regexp.3
62
63MLINKS+=regexp.3 regcomp.3 regexp.3 regexec.3 regexp.3 regsub.3 \
64	regexp.3 regerror.3
65
66# SysV compat sources
67SRCS+=	ftok.c
68
69MAN3+=	SysV/ftok.3
70
71
72.include <bsd.lib.mk>
73