home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / macify13.shr / Makefile < prev    next >
Makefile  |  1991-05-20  |  2KB  |  53 lines

  1. ###########################################################################
  2. ##                                                                       ##
  3. ##                         Makefile for MACIFY                           ##
  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. # MACIFY, after you've nuked your original copy of the shar file.
  26. DISTDIR=/usr/src/dist
  27.  
  28. # You should not need to change anything below this line.
  29.  
  30. all:      macify
  31.  
  32. macify:      macify.o convert.o
  33.       $(CC) $(CFLAGS) -o macify macify.o convert.o
  34.  
  35. macify.o: macify.c macify.h
  36.       $(CC) $(CFLAGS) -c macify.c
  37.  
  38. convert.o:    convert.c macify.h
  39.         $(CC) $(CFLAGS) -c convert.c
  40.  
  41. install:
  42.       $(INSTPRG) macify $(BINDIR)/macify
  43.       $(INSTPRG) macify.1 $(MANDIR)/macify.1
  44.  
  45. dist:
  46.       shar -cv README MANIFEST BUGS TODO Makefile macify.c \
  47.                    macify.h convert.c macify.1 macify.hqx >tmp.sh
  48.       cat distinfo tmp.sh >$(DISTDIR)/macify.sh
  49.       rm tmp.sh
  50.  
  51. clean:
  52.       rm *.o tmp.sh
  53.