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