xref: /freebsd/lib/libcompat/Makefile (revision 17ee9d00bc1ae1e598c38f25826f861e4bc6c3ce)
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
13# compat 4.1 sources
14# XXX MISSING:	getpw.c tell.c vlimit.c vtimes.c
15SRCS=	ftime.c gtty.c stty.c
16
17.if (${MACHINE} == "vax")
18SRCS+=	reset.s
19.endif
20
21MAN3+=	4.1/ftime.3 4.1/getpw.3 4.1/stty.3 4.1/vlimit.3 4.1/vtimes.3
22
23MLINKS+=stty.3 gtty.3
24
25# compat 4.3 sources
26# XXX MISSING:	ecvt.c gcvt.c sibuf.c sobuf.c strout.c
27SRCS+=	cfree.c lsearch.c regex.c rexec.c
28
29.if	(${MACHINE} == "hp300" || ${MACHINE} == "luna68k")
30SRCS+=	insque.s remque.s
31.elif	(${MACHINE} == "i386")
32SRCS+=	insque.c remque.c
33.elif	(${MACHINE} == "mips")
34SRCS+=	insque.c remque.c
35.elif	(${MACHINE} == "sparc")
36SRCS+=	insque.c remque.c
37.elif	(${MACHINE} == "tahoe")
38SRCS+=	nargs.s insque.s remque.s
39.elif	(${MACHINE} == "vax")
40SRCS+=	nargs.s insque.s remque.s
41.endif
42
43# XXX MISSING:	ecvt.0
44MAN3+=	4.3/insque.3 4.3/lsearch.3 4.3/re_comp.3 4.3/rexec.3
45
46# XXX MISSING:	ecvt.3, so can't MLINK
47#MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3
48MLINKS+=insque.3 remque.3
49MLINKS+=re_comp.3 re_exec.3
50
51# compat 4.4 sources
52SRCS+=	cuserid.c
53
54# regexp sources
55SRCS+=	regerror.c regexp.c regsub.c
56
57MAN3+=	regexp/regexp.3
58
59MLINKS+=regexp.3 regcomp.3 regexp.3 regexec.3 regexp.3 regsub.3 \
60	regexp.3 regerror.3
61
62.include <bsd.lib.mk>
63