1 # $NetBSD: Makefile,v 1.29 2009/02/14 13:52:51 abs Exp $ 2 3 .include <bsd.own.mk> 4 5 LIB= compat 6 CPPFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -D__LIBCOMPAT_SOURCE__ 7 AFLAGS+=-I${NETBSDSRCDIR}/lib/libc/arch/${MACHINE_ARCH} 8 .if defined(DESTDIR) 9 AFLAGS+=-nostdinc -idirafter ${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 19 SRCS= gtty.c ftime.c stty.c 20 21 .if (${MACHINE_ARCH} == "vax") 22 # missing: (for vax) reset.s 23 .endif 24 25 MAN+= ftime.3 stty.3 26 27 MLINKS+=stty.3 gtty.3 28 29 # compat 4.3 sources 30 # missing: ecvt.c gcvt.c sibuf.c sobuf.c strout.c 31 SRCS+= cfree.c regex.c rexec.c 32 SRCS+= ruserpass.c 33 34 # missing: ecvt.0 35 MAN+= re_comp.3 rexec.3 36 37 #MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3 38 MLINKS+=re_comp.3 re_exec.3 39 40 41 # compat 4.4 sources 42 SRCS+= cuserid.c 43 MAN+= cuserid.3 44 45 46 # regexp sources 47 SRCS+= regerror.c regexp.c regsub.c 48 MAN+= regexp.3 49 50 .include <bsd.lib.mk> 51