1# @(#)Makefile 8.1 (Berkeley) 6/4/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 13# XXX MISSING: getpw.c tell.c vlimit.c vtimes.c 14SRCS= ftime.c gtty.c stty.c 15 16.if (${MACHINE} == "vax") 17SRCS+= reset.s 18.endif 19 20MAN3+= 4.1/ftime.3 4.1/getpw.3 4.1/stty.3 4.1/vlimit.3 4.1/vtimes.3 21 22MLINKS+=stty.3 gtty.3 23 24# compat 4.3 sources 25# XXX MISSING: ecvt.c gcvt.c sibuf.c sobuf.c strout.c 26SRCS+= cfree.c lsearch.c regex.c rexec.c 27 28.if (${MACHINE} == "hp300" || ${MACHINE} == "luna68k") 29SRCS+= insque.s remque.s 30.elif (${MACHINE} == "i386") 31SRCS+= insque.c remque.c 32.elif (${MACHINE} == "mips") 33SRCS+= insque.c remque.c 34.elif (${MACHINE} == "sparc") 35SRCS+= insque.c remque.c 36.elif (${MACHINE} == "tahoe") 37SRCS+= nargs.s insque.s remque.s 38.elif (${MACHINE} == "vax") 39SRCS+= nargs.s insque.s remque.s 40.endif 41 42# XXX MISSING: ecvt.0 43MAN3+= 4.3/insque.3 4.3/lsearch.3 4.3/re_comp.3 4.3/rexec.3 44 45# XXX MISSING: ecvt.3, so can't MLINK 46#MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3 47MLINKS+=insque.3 remque.3 48MLINKS+=re_comp.3 re_exec.3 49 50# compat 4.4 sources 51SRCS+= cuserid.c 52 53# regexp sources 54SRCS+= regerror.c regexp.c regsub.c 55 56MAN3+= regexp/regexp.3 57 58MLINKS+=regexp.3 regcomp.3 regexp.3 regexec.3 regexp.3 regsub.3 \ 59 regexp.3 regerror.3 60 61.include <bsd.lib.mk> 62