Expand PMF_FN_* macros.
[netbsd-mini2440.git] / gnu / usr.bin / awk / rexp / Makefile
blobc1d28c02d85811b9221c619a7fc88f9f2d4e7444
2 ####################################
3 # This is a makefile for mawk,
4 # an implementation of AWK (1988).
5 ####################################
8 # This builds a regular expression library
9 # Remove the -DMAWK and the library has general use.
12 CC = cc
13 CFLAGS = -O -DMAWK
14 RANLIB = ranlib
15 AR = ar
17 ###################
18 # if you don't have strchr()
19 #CFLAGS = -O -DMAWK -Dstrchr=index
20 ###########################
23 C=rexp.c rexp0.c rexp1.c rexp2.c rexp3.c rexpdb.c
25 regexp.a : $(C)
26 rm -f *.o
27 $(CC) -c $(CFLAGS) $?
28 $(AR) r regexp.a *.o
29 if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then\
30 $(RANLIB) regexp.a ; else true ; fi
31 rm -f *.o