home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / mcvert18.sha / Makefile < prev    next >
Encoding:
Makefile  |  1992-11-05  |  1.5 KB  |  75 lines

  1. ## This file is formatted with a tab-width of 3
  2.  
  3. CSOURCES    = mcvert.c hqxify.c unpack.c
  4. HSOURCES    = mactypes.h
  5. SOURCES     = $(CSOURCES) $(HSOURCES) Makefile
  6. sharSOURCES = $(SOURCES) mcvert.1
  7. OBJECTS     = mcvert.o hqxify.o unpack.o
  8. ALL         = mcvert mcvert.man
  9. CLEAN       = $(OBJECTS) $(ALL)
  10.  
  11. VERSION=187
  12.  
  13. BIN = .
  14.  
  15. ##
  16. ## *LAST* Defintion Always Wins ##
  17. ##
  18.  
  19. ### Bind Time Library Selection
  20. # for RS/6000
  21. LIBS= -lbsd
  22. # for most implementations
  23. LIBS=
  24.  
  25. ### Machine CFLAGS
  26. # for machines without <timeb.h> and ftime()
  27. CFLAGS_M= -DTIMEVAL            
  28. # for machines with ulong pre-defined (eg, IBM RS/6000's AIX)
  29. CFLAGS_M= -DULONG
  30. # eg, for A/UX, SGI's Irix
  31. CFLAGS_M= -DTIMEVAL -DULONG
  32. # for many machines (eg, HP-UX, SunOS, DomainOS, ULTRIX)
  33. CFLAGS_M=
  34.  
  35. ### Debugging/optimization CFLAGS
  36. # debugging
  37. CFLAGS_D = -g
  38. # optimization
  39. CFLAGS_D = -O
  40.  
  41. ### Byteorder(3n) routines [eg, htonl()] CFLAGS
  42. # uncommon case (none known, actually): without byteorder support
  43. CFLAGS_N = -DNOBYTEORDER
  44. # common case: with byteorder support
  45. CFLAGS_N =
  46.  
  47. ### All CFLAGS
  48. CFLAGS=$(CFLAGS_M) $(CFLAGS_D) $(CFLAGS_N) -DVERSION=$(VERSION)
  49.  
  50. all: $(ALL)
  51.  
  52. mcvert: $(OBJECTS)
  53.     $(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o $(BIN)/mcvert
  54.  
  55. lint: $(HSOURCES) $(CSOURCES)
  56.     lint $(CSOURCES)
  57.  
  58. $(OBJECTS): mactypes.h Makefile
  59.  
  60. print: $(SOURCES)
  61.     lpr -p -P$(PRINTER) $(SOURCES)
  62.  
  63. shar : mcvert-$(VERSION).shar
  64. mcvert-$(VERSION).shar : $(sharSOURCES)
  65.     shar $(sharSOURCES) > $@
  66.  
  67. clean:
  68.     rm -f $(CLEAN)
  69.  
  70. man: mcvert.man
  71. mcvert.man: mcvert.1
  72.     nroff -man mcvert.1 | sed 's/.//g' > $@
  73. mcvert.ps: mcvert.1
  74.     groff -man mcvert.1 > $@
  75.