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