home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / fmtr / Makefile < prev    next >
Encoding:
Makefile  |  1986-11-30  |  789 b   |  34 lines

  1. CFLAGS = -O
  2.  
  3. # comment out next line if you have getopt() in your library
  4. GETOPT = getopt.o
  5.  
  6. # comment out next line if you have efopen() in your library
  7. EFOPEN = efopen.o
  8.  
  9. # comment out next line if you have fgetsmod() in your library
  10. FGETSMOD = fgetsmod.o
  11.  
  12. SRC = fmtr.c command.c lowtext.c efopen.c getopt.c fgetsmod.c
  13. OBJ = fmtr.o command.o lowtext.o $(EFOPEN) $(GETOPT) $(FGETSMOD)
  14.  
  15. # You may wish to modify either or both of the following:
  16. BINDIR = /usr/local
  17. MANDIR = /usr/man/man1
  18.  
  19. fmtr:    $(OBJ)
  20.     cc $(CFLAGS) -s -o fmtr $(OBJ)
  21.  
  22. fmtr.o command.o lowtext.o:    fmtr.h
  23.  
  24. install:    fmtr fmtr.1h
  25.     cp -c fmtr $(BINDIR)
  26.     cp -c fmtr.1h $(MANDIR)
  27.  
  28. shar:
  29.     shar -a README Makefile $(SRC) fmtr.h fmtr.1 efopen.3s \
  30.     fgetsmod.3s getopt.3 > fmtr.shar
  31.  
  32. clean:
  33.     /bin/rm -f *.o a.out core fmtr fmtr.shar
  34.