home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / f2c / i77lib / smakefile < prev    next >
Makefile  |  1998-08-16  |  2KB  |  92 lines

  1. .SUFFIXES: .c .o
  2. CC = sc
  3. CFLAGS= ansi math=ieee includedirectory=/src optimize
  4. #SHELL = /bin/sh
  5.  
  6. # compile, then strip unnecessary symbols
  7. .c.o:
  8.     $(CC) define=Skip_f2c_Undefs $(CFLAGS) $*.c
  9.  
  10. OBJ =    Version.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \
  11.     fmt.o fmtlib.o iio.o ilnw.o inquire.o lread.o lwrite.o open.o \
  12.     rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o uio.o \
  13.     util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o
  14.  
  15. I77.lib:    $(OBJ)
  16.         list >t:i77ofiles \#?.o lformat %s
  17.         oml I77.lib r @t:i77ofiles
  18.  
  19. #install:    libI77.a
  20. #    cp libI77.a /usr/lib/libI77.a
  21. #    ranlib /usr/lib/libI77.a
  22.  
  23. Version.o: Version.c
  24.     $(CC)  Version.c
  25.  
  26.  
  27. #clean:
  28. #    rm -f $(OBJ) libI77.a
  29.  
  30. #clobber:    clean
  31. #    rm -f libI77.a
  32.  
  33. backspace.o:    fio.h
  34. close.o:    fio.h
  35. dfe.o:        fio.h
  36. dfe.o:        fmt.h
  37. due.o:        fio.h
  38. endfile.o:    fio.h rawio.h
  39. err.o:        fio.h rawio.h
  40. fmt.o:        fio.h
  41. fmt.o:        fmt.h
  42. iio.o:        fio.h
  43. iio.o:        fmt.h
  44. ilnw.o:        fio.h
  45. ilnw.o:        lio.h
  46. inquire.o:    fio.h
  47. lread.o:    fio.h
  48. lread.o:    fmt.h
  49. lread.o:    lio.h
  50. lread.o:    fp.h
  51. lwrite.o:    fio.h
  52. lwrite.o:    fmt.h
  53. lwrite.o:    lio.h
  54. open.o:        fio.h rawio.h
  55. rdfmt.o:    fio.h
  56. rdfmt.o:    fmt.h
  57. rdfmt.o:    fp.h
  58. rewind.o:    fio.h
  59. rsfe.o:        fio.h
  60. rsfe.o:        fmt.h
  61. rsli.o:        fio.h
  62. rsli.o:        lio.h
  63. rsne.o:        fio.h
  64. rsne.o:        lio.h
  65. sfe.o:        fio.h
  66. sue.o:        fio.h
  67. uio.o:        fio.h
  68. util.o:        fio.h
  69. wref.o:        fio.h
  70. wref.o:        fmt.h
  71. wref.o:        fp.h
  72. wrtfmt.o:    fio.h
  73. wrtfmt.o:    fmt.h
  74. wsfe.o:        fio.h
  75. wsfe.o:        fmt.h
  76. wsle.o:        fio.h
  77. wsle.o:        fmt.h
  78. wsle.o:        lio.h
  79. wsne.o:        fio.h
  80. wsne.o:        lio.h
  81. xwsne.o:    fio.h
  82. xwsne.o:    lio.h
  83. xwsne.o:    fmt.h
  84.  
  85. check:
  86.     xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \
  87.     due.c endfile.c err.c fio.h fmt.c fmt.h fmtlib.c fp.h iio.c \
  88.     ilnw.c inquire.c lio.h lread.c lwrite.c makefile open.c rawio.h \
  89.     rdfmt.c rewind.c rsfe.c rsli.c rsne.c sfe.c sue.c typesize.c \
  90.     uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c xwsne.c >zap
  91.     cmp zap libI77.xsum && rm zap || diff libI77.xsum zap
  92.