home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 278.lha / RegexLibrary_v1.0 / makefile < prev    next >
Makefile  |  1989-08-06  |  1KB  |  53 lines

  1. # Makefile for the GNU regular expression library
  2. # 1989 Edwin Hoogerbeets
  3. #
  4. # This file may be copied and distributed under the GNU Public
  5. # Licence. See the comment at the top of regex.c for details.
  6. #
  7. # Adapted from Elib by Jim Mackraz and mklib by Edwin Hoogerbeets.
  8. #
  9.  
  10. CFLAGS=+L -DAMIGA
  11. #-n
  12. LNFLAGS=
  13. #-g
  14.  
  15. LOBJS=startup.o rtag.o interface.o library.o regex.o malloc.o
  16. LIBOBJS=link.o lib2.o lib1.o
  17. ALIBOBJS=alink.o lib2.o lib1.o
  18.  
  19. all: regex.library regex.lib tester tinygrep
  20.  
  21. regex.library: $(LOBJS)
  22.         ln $(LNFLAGS) $(LOBJS) -lc32 -o $@
  23.  
  24. regex.lib: $(LIBOBJS)
  25.         lb $@ $(LIBOBJS)
  26.  
  27. aregex.lib: $(ALIBOBJS)
  28.         lb $@ $(ALIBOBJS)
  29.  
  30. tester: regex.lib tester.o
  31.         ln $(LNFLAGS) tester.o -lregex -lc32 -o $@
  32.  
  33. tinygrep: regex.lib tinygrep.o
  34.         ln $(LNFLAGS) tinygrep.o -lregex -lc32 -o $@
  35.  
  36. malloctest: m.o
  37.         ln $(LNFLAGS) m.o -lc32 -o $@
  38.  
  39. m.o:
  40.         cc $(CFLAGS) -DTESTMALLOC malloc.c -o $@
  41.  
  42. #
  43. # Flush option only valid on ARP avail command. Used to expunge all
  44. # used libraries, allowing the new regex.library to be tested in
  45. # subsequent runs of tester or tinygrep.
  46. #
  47. install: regex.library
  48.         avail flush
  49.         cp regex.library libs:
  50.  
  51.  
  52.  
  53.