home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / unix / macutil2.sha / macutil / mixed / makefile < prev    next >
Encoding:
Makefile  |  1992-11-05  |  1.9 KB  |  91 lines

  1. CFLAGS = -O $(CF)
  2.  
  3. SRCS1 =    macsave.c \
  4.     globals.c \
  5.     macbinary.c \
  6.     dir.c \
  7.     mcb.c
  8.  
  9. SRCS2 =    macstream.c
  10.  
  11. OBJS1 =    macsave.o \
  12.     globals.o \
  13.     macbinary.o \
  14.     dir.o \
  15.     mcb.o
  16.  
  17. OBJS2 =    macstream.o
  18.  
  19. TNAME =    ../util/transname
  20. UNAME =    ../util/util
  21. ONAME =    ../fileio/wrfile
  22. INAME = ../fileio/rdfile
  23. GNAME =    ../fileio/fileglob
  24. XOBJS1=    $(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
  25. XSRCS1=    $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
  26. XOBJS2=    $(TNAME).o $(UNAME).o $(INAME).o $(GNAME).o
  27. XSRCS2=    $(TNAME).c $(UNAME).c $(INAME).c $(GNAME).c
  28. XOBJS3=    $(UNAME).o $(ONAME).o $(GNAME).o
  29. XSRCS3=    $(UNAME).c $(ONAME).c $(GNAME).c
  30.  
  31. all:    macsave macstream
  32.     touch all
  33.  
  34. macsave:    $(OBJS1) $(XOBJS1)
  35.     $(CC) $(CFLAGS) -o macsave $(OBJS1) $(XOBJS1)
  36.  
  37. macstream:    $(OBJS2) $(XOBJS2)
  38.     $(CC) $(CFLAGS) -o macstream $(OBJS2) $(XOBJS2)
  39.  
  40. $(TNAME).o:    $(TNAME).c
  41.     (cd ../util; make CC=$(CC) CF="$(CF)" )
  42.  
  43. $(UNAME).o:    $(UNAME).c
  44.     (cd ../util; make CC=$(CC) CF="$(CF)" )
  45.  
  46. $(ONAME).o:    $(ONAME).c
  47.     (cd ../fileio; make CC=$(CC) CF="$(CF)" )
  48.  
  49. $(INAME).o:    $(INAME).c
  50.     (cd ../fileio; make CC=$(CC) CF="$(CF)" )
  51.  
  52. $(GNAME).o:    $(GNAME).c
  53.     (cd ../fileio; make CC=$(CC) CF="$(CF)" )
  54.  
  55. lint:
  56.     lint $(CF) $(LFLAGS) $(SRCS1) $(XSRCS1)
  57.     lint $(CF) $(LFLAGS) $(SRCS2) $(XSRCS2)
  58.  
  59. clean:
  60.     -rm -f *.o
  61.  
  62. clobber:clean
  63.     -rm -f macsave macstream
  64.  
  65. macsave.o:    globals.h
  66. macsave.o:    ../util/patchlevel.h
  67. macsave.o:    ../fileio/wrfile.h
  68. macsave.o:    ../fileio/wrfileopt.h
  69. macsave.o:    ../util/util.h
  70. globals.o:    globals.h
  71. globals.o:    ../fileio/machdr.h
  72. macbinary.o:    globals.h
  73. macbinary.o:    ../fileio/machdr.h
  74. macbinary.o:    ../fileio/kind.h
  75. macbinary.o:    ../util/util.h
  76. dir.o:    globals.h
  77. dir.o:    ../fileio/machdr.h
  78. dir.o:    ../fileio/wrfile.h
  79. dir.o:    ../util/util.h
  80. dir.o:    ../util/masks.h
  81. mcb.o:    globals.h
  82. mcb.o:    ../fileio/machdr.h
  83. mcb.o:    ../fileio/wrfile.h
  84. mcb.o:    ../util/masks.h
  85. mcb.o:    ../util/util.h
  86. macstream.o:    ../fileio/machdr.h
  87. macstream.o:    ../fileio/rdfile.h
  88. macstream.o:    ../fileio/rdfileopt.h
  89. macstream.o:    ../util/patchlevel.h
  90.  
  91.