# RCSid:
#	$Id: Makefile,v 1.38 2009/12/14 18:09:44 sjg Exp $
#
#	@(#) Copyright (c) 1994 Simon J. Gerraty
#
#	This file is provided in the hope that it will
#	be of use.  There is absolutely NO WARRANTY.
#	Permission to copy, redistribute or otherwise
#	use this file is hereby granted provided that 
#	the above copyright notice and this notice are
#	left intact. 
#      
#	Please send copies of changes and bug-fixes to:
#	sjg@crufty.net
#

LIB=	compat

CFLAGS+= -Dlib${LIB}

SRCS = \
	atexit.c \
	difftime.c \
	err.c \
	fgetln.c \
	get_myaddress.c	 \
	getenv.c \
	getopt.c \
	herror.c \
	inet_addr.c \
	killpg.c \
	memmove.c \
	popen.c \
	setenv.c \
	sigcompat.c \
	snprintf.c \
	strcasecmp.c \
	strerror.c \
	strftime.c \
	stringlist.c \
	strstr.c \
	strtol.c \
	strtoul.c \
	tiocompat.c \
	utimes.c

.if ${MACHINE} == "sun386i"
SRCS += ctype.c
.endif

.if !exists(/usr/include/regex.h)
.PATH: ${.CURDIR}/../regex
CFLAGS += -I${.CURDIR}/../regex -DPOSIX_MISTAKE
SRCS +=  regcomp.c regerror.c regexec.c regfree.c
.endif

.include <lib.mk>
