home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / unix / textmstr.shr / Makefile < prev    next >
Makefile  |  1991-06-26  |  2KB  |  59 lines

  1. ###########################################################################
  2. ##                                                                       ##
  3. ##                       Makefile for TextMaster                         ##
  4. ##                                                                       ##
  5. ###########################################################################
  6.  
  7. # Values here should be changed to whatever's appropriate for your system
  8.  
  9. # Change this to the C compiler you use.  Most systems will handle 'cc'
  10. # fine, since I didn't write this in ANSI C or anything special.  On some
  11. # systems, GCC may provide better and smaller output, so try that instead.
  12. CC=cc
  13. # Replace this with any compile-time flags you wish to set.
  14. CFLAGS=-O
  15. # This is where the binaries (BINDIR) and man pages (MANDIR) will be installed
  16. # if you type 'make install'.  Change this to whatever's appropriate.
  17. BINDIR=/usr/local
  18. MANDIR=/usr/man/local/man1
  19. # This is the program to be used to install the binaries and man pages.
  20. # I use 'cp' because it's simple, and some versions of 'install' (the system
  21. # built-in installation program) don't work right.
  22. INSTPRG=cp
  23. # This is probably irrelevant; this is the directory that the distribution
  24. # shar-file will be placed.  This is only of use to people re-distributing
  25. # TEXTMASTER, after you've nuked your original copy of the shar file.
  26. DISTDIR=/usr/src/DIST
  27. # Set this to the extension your man pages use.  On some systems, this
  28. # would be "l" (as in L, not 1)
  29. MANEXT=1
  30. # Version number of program, to be used in distribution shell archive
  31. # creation.
  32. VER=14
  33.  
  34. # You should not need to change anything below this line.
  35.  
  36. all:      tm
  37.  
  38. tm:      tm.o convert.o
  39.       $(CC) $(CFLAGS) -o tm tm.o convert.o
  40.  
  41. tm.o:      tm.c tm.h
  42.       $(CC) $(CFLAGS) -c tm.c
  43.  
  44. convert.o:    convert.c tm.h
  45.         $(CC) $(CFLAGS) -c convert.c
  46.  
  47. install:
  48.       $(INSTPRG) tm $(BINDIR)/tm
  49.       $(INSTPRG) tm.1 $(MANDIR)/tm.$(MANEXT)
  50.  
  51. dist:
  52.       shar -cv README MANIFEST BUGS TODO Makefile tm.c \
  53.                    tm.h convert.c tm.1 tm.hqx >tmp.sh
  54.       cat distinfo tmp.sh >$(DISTDIR)/tm$(VER).sh
  55.       rm tmp.sh
  56.  
  57. clean:
  58.       /bin/rm -f *.o tmp.sh
  59.