home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / FTNCHK32.ZIP / MAKEFILE.OS2 < prev    next >
Text File  |  1993-02-17  |  1KB  |  40 lines

  1. # OS2 version of Makefile for Fortran program checker
  2. # to be compiled with emx-0.8f development system.
  3. # (Copy this to makefile prior to running dmake.)
  4. # makefile produced by: Jan Ftacnik  ftacnikj@fnal05.fnal.gov
  5. # Note: This makefile is for use with DMAKE (that is what I use)
  6. # It uses generic UNIX switches, I have changed just compiler
  7. # specific options and defined .def file to avoid warnings.
  8. #
  9. # This version produces ftnchek.exe as OS2 executable without
  10. # the need to have any emx dll libraries installed.
  11.  
  12. # We are using the defaults for everything:
  13. OPTIONS=
  14.  
  15. # define compilation flags
  16. CFLAGS= -Zomf -Zsys -DUNIX $(OPTIONS) -O2 -D_BSD
  17.  
  18. OBJS= ftnchek.obj forlex.obj fortran.obj prsymtab.obj symtab.obj symtab2.obj
  19.  
  20. ftnchek.exe: $(OBJS)
  21.     gcc -o ftnchek.exe $(CFLAGS) $(OBJS) ftnchek.def
  22.  
  23. ftnchek.obj: ftnchek.h
  24.     gcc -c $(CFLAGS) ftnchek.c
  25.  
  26. forlex.obj: ftnchek.h tokdefs.h symtab.h
  27.     gcc -c $(CFLAGS) forlex.c
  28.  
  29. fortran.obj: ftnchek.h symtab.h fortran.c
  30.     gcc -c $(CFLAGS) fortran.c
  31.  
  32. prsymtab.obj: ftnchek.h symtab.h
  33.     gcc -c $(CFLAGS) prsymtab.c
  34.  
  35. symtab.obj: ftnchek.h symtab.h intrins.h
  36.     gcc -c $(CFLAGS) symtab.c
  37.  
  38. symtab2.obj: ftnchek.h symtab.h tokdefs.h
  39.     gcc -c $(CFLAGS) symtab2.c
  40.