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.
14 # CFLAGS for typical V7 system
15 CFLAGS = -O -DMAWK -Dstrchr=index -Dvoid=int
17 O=rexp.o rexp0.o rexp1.o rexp2.o rexp3.o rexpdb.o
19 # The following stuff is for compilers whose symbols are unique only
20 # to 7 (external) or 8 (local) characters.
22 .SUFFIXES : .cl .h .hl
25 hash8 encode ../TABLE <$< >$*.c
26 $(CC) $(CFLAGS) $(CFLAGS2) -c $*.c 2>&1 | hash8 decode ../TABLE
30 $(CC) $(CFLAGS) $(CFLAGS2) -c $*.c 2>&1 | hash8 decode ../TABLE
33 hash8 encode ../TABLE <$< >$*.c
36 hash8 encode ../TABLE <$< >$@
38 #######################################
42 if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then\
43 ranlib regexp.a ; else true ; fi