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