1# @(#)Makefile 8.1 (Berkeley) 6/4/93 2 3LIB=compat 4CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/../libc/locale 5AINC= -I${.CURDIR}/../libc/${MACHINE_ARCH} 6NOPIC= 7 8.PATH: ${.CURDIR}/4.1/${MACHINE_ARCH} ${.CURDIR}/4.1 \ 9 ${.CURDIR}/4.3/${MACHINE_ARCH} ${.CURDIR}/4.3 \ 10 ${.CURDIR}/4.4/${MACHINE_ARCH} ${.CURDIR}/4.4 \ 11 ${.CURDIR}/regexp 12 13# compat 4.1 sources 14# XXX MISSING: tell.c vlimit.c vtimes.c 15SRCS+= ascftime.c cftime.c ftime.c getpw.c gtty.c stty.c 16 17.if (${MACHINE_ARCH} == "vax") 18SRCS+= reset.s 19.endif 20 21MAN3+= 4.1/ftime.3 4.1/getpw.3 4.1/stty.3 4.1/vlimit.3 4.1/vtimes.3 22MAN3+= 4.1/cftime.3 23 24MLINKS+=stty.3 gtty.3 25MLINKS+=cftime.3 ascftime.3 26 27# compat 4.3 sources 28# XXX MISSING: ecvt.c gcvt.c sibuf.c sobuf.c strout.c 29SRCS+= cfree.c lsearch.c regex.c rexec.c 30 31.if (${MACHINE_ARCH} == "hp300" || ${MACHINE_ARCH} == "luna68k") 32SRCS+= insque.s remque.s 33.elif (${MACHINE_ARCH} == "i386") 34SRCS+= insque.c remque.c 35.elif (${MACHINE_ARCH} == "mips") 36SRCS+= insque.c remque.c 37.elif (${MACHINE_ARCH} == "sparc") 38SRCS+= insque.c remque.c 39.elif (${MACHINE_ARCH} == "tahoe") 40SRCS+= nargs.s insque.s remque.s 41.elif (${MACHINE_ARCH} == "vax") 42SRCS+= nargs.s insque.s remque.s 43.endif 44 45# XXX MISSING: ecvt.0 46MAN3+= 4.3/cfree.3 4.3/insque.3 4.3/lsearch.3 4.3/re_comp.3 4.3/rexec.3 47 48# XXX MISSING: ecvt.3, so can't MLINK 49#MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3 50MLINKS+=insque.3 remque.3 51MLINKS+=re_comp.3 re_exec.3 52MLINKS+=lsearch.3 lfind.3 53 54# compat 4.4 sources 55SRCS+= cuserid.c 56MAN3+= 4.4/cuserid.3 57 58# regexp sources 59SRCS+= regerror.c regexp.c regsub.c 60 61MAN3+= regexp/regexp.3 62 63# XXX name clash with libc 64# MLINKS+=regexp.3 regcomp.3 regexp.3 regexec.3 regexp.3 regerror.3 65MLINKS+=regexp.3 regsub.3 66 67.include <bsd.lib.mk> 68