home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / mawk11as.zip / REXP / MAKEFILE next >
Text File  |  1991-12-18  |  674b  |  32 lines

  1.  
  2. ####################################
  3. # This is a makefile for mawk,
  4. # an implementation of AWK (1988).
  5. ####################################
  6. #
  7. #
  8. # This builds a regular expression library
  9. # Remove the -DMAWK and the library has general use.
  10. #
  11.  
  12. CC = cc
  13. CFLAGS = -O  -DMAWK
  14. RANLIB = ranlib
  15. AR = ar
  16.  
  17. ###################
  18. #  if you don't have strchr()
  19. #CFLAGS = -O -DMAWK -Dstrchr=index
  20. ###########################
  21.  
  22.  
  23. C=rexp.c rexp0.c rexp1.c rexp2.c rexp3.c rexpdb.c
  24.  
  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
  32.