# -Dvoid=int		compilers that don't do void
# -DCHARBITS=0377	compilers that don't do unsigned char
# -DSTATIC=extern	compilers that don't like "static foo();" as forward decl
# -DSTRCSPN		library does not have strcspn()
# -Dstrchr=index	library does not have strchr()
# -DERRAVAIL		have utzoo-compatible error() function and friends

LENV= -I.
ENV= -I.

# Things you might want to put in PROF:
# -Dstatic='/* */'	make everything global so profiler can see it.
# -p			profiler
PROF=

CFLAGS= -O $(ENV) $(PROF)
LINTFLAGS= $(LENV)  -ha

SRCS=	regexp.c regsub.c
OBJS=	regexp.o regsub.o

all::	libregexp.a

libregexp.a: $(OBJS)
	ar cruv libregexp.a $(OBJS)
#ifndef SOLARIS
	ranlib libregexp.a
#endif

clean::
	-rm -f libregexp.a
