home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / MIXED / makefile < prev    next >
Makefile  |  1996-02-02  |  2KB  |  91 lines

  1. CC = cc
  2. CFLAGS = -r -dOSK -dNODOT
  3.  
  4. SRCS1 =    macsave.c \
  5.     globals.c \
  6.     macbinary.c \
  7.     dir.c \
  8.     mcb.c\
  9.     fputc.c
  10.  
  11. SRCS2 =    macstream.c
  12.  
  13. OBJS1 =    macsave.r \
  14.     globals.r \
  15.     macbinary.r \
  16.     dir.r \
  17.     mcb.r\
  18.     fputc.r
  19.  
  20. OBJS2 =    macstream.r fputc.r
  21.  
  22. TNAME =    ../util/transname
  23. BNAME = ../util/backtrans
  24. UNAME =    ../util/util
  25. ONAME =    ../fileio/wrfile
  26. INAME = ../fileio/rdfile
  27. GNAME =    ../fileio/fileglob
  28. XOBJS1=    $(TNAME).r $(UNAME).r $(ONAME).r $(GNAME).r
  29. XSRCS1=    $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
  30. XOBJS2=    $(TNAME).r $(BNAME).r $(UNAME).r $(INAME).r $(GNAME).r
  31. XSRCS2=    $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c
  32.  
  33. all: macsave macstream
  34.     attr macsave -e -pe;\
  35.     attr macstream -e -pe
  36.  
  37.  
  38. macsave:    $(OBJS1) $(XOBJS1)
  39.     $(CC) -FD=macsave $(OBJS1) $(XOBJS1) -l=/dd/lib/blarslib.l
  40.  
  41. macstream:    $(OBJS2) $(XOBJS2)
  42.     $(CC) -FD=macstream $(OBJS2) $(XOBJS2) -l=/dd/lib/blarslib.l
  43.  
  44. $(TNAME).r:    $(TNAME).c
  45.     (chd ../util; make)
  46.  
  47. $(BNAME).r:    $(BNAME).c
  48.     (chd ../util; make)
  49.  
  50. $(UNAME).r:    $(UNAME).c
  51.     (chd ../util; make)
  52.  
  53. $(ONAME).r:    $(ONAME).c
  54.     (chd ../fileio; make)
  55.  
  56. $(INAME).r:    $(INAME).c
  57.     (chd ../fileio; make)
  58.  
  59. $(GNAME).r:    $(GNAME).c
  60.     (chd ../fileio; make)
  61.  
  62.  
  63. macsave.r:    globals.h ../util/patchlevel.h ../fileio/wrfile.h \
  64.            ../fileio/wrfileopt.h ../util/util.h macsave.c
  65.  $(CC) $(CFLAGS) macsave.c
  66.  
  67. globals.r:    globals.h ../fileio/machdr.h globals.c
  68.  $(CC) $(CFLAGS) globals.c
  69.  
  70. macbinary.r:    globals.h ../fileio/machdr.h ../fileio/kind.h \
  71.             ../util/util.h macbinary.c
  72.  $(CC) $(CFLAGS) macbinary.c
  73.  
  74. dir.r:    globals.h ../fileio/machdr.h ../fileio/wrfile.h \
  75.         ../util/util.h ../util/masks.h dir.c fputc.c
  76.  $(CC) $(CFLAGS) dir.c
  77.  
  78. mcb.r:    globals.h ../fileio/machdr.h ../fileio/wrfile.h \
  79.         ../util/masks.h ../util/util.h mcb.c fputc.c
  80.  $(CC) $(CFLAGS) mcb.c
  81.  
  82. macstream.r:    ../fileio/machdr.h ../fileio/rdfile.h ../fileio/rdfileopt.h \
  83.                 ../util/patchlevel.h macstream.c
  84.  $(CC) $(CFLAGS) macstream.c
  85.  
  86. # For OSK only ..Somehow '#define fprintf(path,"%c",var) fputc(var,path)'
  87. # would not work in this source code ????? -DJL
  88.   
  89. fputc.r : fputc.c globals.h
  90.  $(CC) $(CFLAGS) fputc.c 
  91.