home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / f2c / src / smakefile < prev    next >
Makefile  |  1999-05-22  |  2KB  |  84 lines

  1. #    Makefile for f2c, a Fortran 77 to C converter
  2.  
  3. CFLAGS = optimize data=far math=ieee nowarnvoidreturn ignore=100 ignore=161
  4.  
  5. OBJECTSd = main.o init.o gram.o lex.o proc.o equiv.o data.o format.o \
  6.       expr.o exec.o intr.o io.o misc.o error.o mem.o names.o \
  7.       output.o p1output.o pread.o put.o putpcc.o vax.o formatdata.o \
  8.       parse_args.o niceprintf.o cds.o sysdep.o version.o
  9.  
  10. OBJECTS = $(OBJECTSd) alloca.o
  11.  
  12. f2c: $(OBJECTS)
  13.     slink < with <(f2c.lnk)
  14.     from lib:c.o $(OBJECTS)
  15.     to f2c
  16.     lib lib:scmieee.lib lib:scnb.lib lib:amiga.lib
  17.     VERBOSE
  18.     <
  19.     
  20. #gram.c:    gram.head gram.dcl gram.expr gram.exec gram.io defs.h tokdefs.h
  21. #    ( sed <tokdefs.h "s/#define/%token/" ;\
  22. #        cat gram.head gram.dcl gram.expr gram.exec gram.io ) >gram.in
  23. #    $(YACC) $(YFLAGS) gram.in
  24. #    echo "(expect 4 shift/reduce)"
  25. #    sed 's/^# line.*/\/* & *\//' y.tab.c >gram.c
  26. #    rm -f gram.in y.tab.c
  27.  
  28. #$(OBJECTSd): defs.h ftypes.h defines.h machdefs.h sysdep.h
  29.  
  30. #tokdefs.h: tokens
  31. #    grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
  32.  
  33. alloca.o : alloca.c
  34.  
  35. cds.o: cds.c sysdep.h
  36.  
  37. exec.o: exec.c p1defs.h names.h
  38.  
  39. expr.o: expr.c output.h niceprintf.h names.h
  40.  
  41. format.o: format.c p1defs.h format.h output.h niceprintf.h names.h iob.h
  42.  
  43. formatdata.o: formatdata.c format.h output.h niceprintf.h names.h
  44.  
  45. gram.o: gram.c p1defs.h
  46.  
  47. init.o: init.c output.h niceprintf.h iob.h
  48.  
  49. intr.o: intr.c names.h
  50.  
  51. io.o: io.c names.h iob.h
  52.  
  53. lex.o : lex.c tokdefs.h p1defs.h
  54.  
  55. main.o: main.c parse.h usignal.h
  56.  
  57. misc.o : misc.c
  58.  
  59. mem.o: mem.c iob.h
  60.  
  61. names.o: names.c iob.h names.h output.h niceprintf.h
  62.  
  63. niceprintf.o: niceprintf.c defs.h names.h output.h niceprintf.h
  64.  
  65. output.o: output.c output.h niceprintf.h names.h
  66.  
  67. p1output.o: p1output.c p1defs.h output.h niceprintf.h names.h
  68.  
  69. parse_args.o: parse_args.c parse.h
  70.  
  71. proc.o: proc.c tokdefs.h names.h niceprintf.h output.h p1defs.h
  72.  
  73. put.o: put.c names.h pccdefs.h p1defs.h
  74.  
  75. putpcc.o: putpcc.c names.h
  76.  
  77. sysdep.o : sysdep.c defs.h usignal.h
  78.  
  79. vax.o: vax.c defs.h output.h pccdefs.h
  80.  
  81. #output.h: niceprintf.h
  82.  
  83. #put.o putpcc.o: pccdefs.h
  84.