home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / FM25.ZIP / fm.tar / Makefile < prev    next >
Makefile  |  1992-05-05  |  1KB  |  54 lines

  1. # Makefile for fm, 5/5/92, Greg Lee
  2.  
  3. DESTDIR = /usr/bin
  4. SOURCES = MANIFEST README README.tex fm.l fm.1 Makefile cmds.tex hyphenate.c \
  5.     trie_link.h trie_char.h trie_op.h
  6.  
  7. #LIBS = -ltermcap
  8. #CFLAGS = -O
  9. # If the termcap output on SYSV doesn't work, you
  10. #   might try adding -DSYSVR3 to CFLAGS
  11. # Instead of termcap, on an ANSI color display, one can  use -DANSI
  12. LIBS =
  13. CFLAGS = -O -DANSI
  14.  
  15. LDFLAGS = -s
  16.  
  17. fm:    fm.o hyphenate.o
  18.     $(CC) $(LDFLAGS) -o fm fm.o hyphenate.o $(LIBS)
  19.  
  20. hyphenate.o: hyphenate.c trie_link.h trie_char.h trie_op.h
  21.     $(CC) $(CFLAGS) -c hyphenate.c
  22.  
  23. fm.o:    fm.c
  24.     $(CC) $(CFLAGS) -c fm.c
  25.  
  26. fm.c:    fm.l
  27.     @rm -f fm.c
  28.     flex -t fm.l >fm.c
  29.  
  30. doc:    fm.1 fm README.tex
  31.     @rm -f fm.doc README
  32.     fm -jmo fm.1 >fm.doc
  33.     fm -jx README.tex >README
  34.  
  35. shar:    $(SOURCES)
  36.     @rm -f fm.shar
  37.     makekit -m -nfm.shar.
  38.  
  39. tar:    $(SOURCES)
  40.     @rm -f fm.tar fm.tar.Z
  41.     tar cf fm.tar $(SOURCES)
  42.     compress fm.tar
  43.  
  44. freeze:    $(SOURCES)
  45.     @rm -f fm.tar fm.tar.F
  46.     tar cf fm.tar $(SOURCES)
  47.     freeze fm.tar
  48.  
  49. clean:
  50.     rm -f *.o fm fm.c fm.doc
  51.  
  52. install:
  53.     cp fm $(DESTDIR)
  54.