xref: /netbsd/lib/libcompat/Makefile (revision 6550d01e)
1#	$NetBSD: Makefile,v 1.30 2010/03/22 01:29:30 mrg Exp $
2
3.include <bsd.own.mk>
4
5LIB=	compat
6CPPFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -D__LIBCOMPAT_SOURCE__
7AFLAGS+=-I${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH}
8.if defined(DESTDIR)
9AFLAGS+=-nostdinc -isystem ${DESTDIR}/usr/include
10.endif
11
12.PATH:	${.CURDIR}/4.1/${MACHINE_ARCH} ${.CURDIR}/4.1 \
13	${.CURDIR}/4.3/${MACHINE_ARCH} ${.CURDIR}/4.3 \
14	${.CURDIR}/4.4/${MACHINE_ARCH} ${.CURDIR}/4.4 \
15	${.CURDIR}/regexp
16
17# compat 4.1 sources
18# missing: getpw.c tell.c vlimit.c vtimes.c
19SRCS=	gtty.c ftime.c stty.c
20
21.if (${MACHINE_ARCH} == "vax")
22# missing: (for vax) reset.s
23.endif
24
25MAN+=	ftime.3 stty.3
26
27MLINKS+=stty.3 gtty.3
28
29# compat 4.3 sources
30# missing: ecvt.c gcvt.c sibuf.c sobuf.c strout.c
31SRCS+=	cfree.c regex.c rexec.c
32SRCS+=	ruserpass.c
33
34# missing: ecvt.0
35MAN+=	re_comp.3 rexec.3
36
37#MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3
38MLINKS+=re_comp.3 re_exec.3
39
40
41# compat 4.4 sources
42SRCS+=	cuserid.c
43MAN+=	cuserid.3
44
45
46# regexp sources
47SRCS+=	regerror.c regexp.c regsub.c
48MAN+=	regexp.3
49
50.include <bsd.lib.mk>
51