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