home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / OS2SCALC.ZIP / MAKEFILE < prev    next >
Text File  |  1990-07-19  |  904b  |  40 lines

  1. # On U**X systems, compile with:
  2. #    % cc -c -DU__X -O file.c
  3. #
  4. # On VMS system, compile with:
  5. #    $ cc/define=VMS file.c
  6. #    also.... rename y.tab.h to y_tab.h
  7. #
  8. # On OS/2 system, compile with:
  9. #    [C:\] cl -c -DOS2 file.c
  10. #    also.... rename y.tab.h to ytab.h
  11. #
  12.  
  13. LIBS    = /link /exepack
  14. CFLAGS  = -Lp -AL
  15. DEFS    = -DOS2
  16. OBJS    = sc.obj lex.obj gram.obj interp.obj cmds.obj curs.obj
  17. INCL    = experres.h sc.h statres.h ytab.h
  18. DOCS    = README sc.man
  19.  
  20. sc.exe :    $(OBJS)
  21.     $(CC) $(CFLAGS) $(OBJS) $(LIBS)
  22.  
  23. lex.obj:   lex.c $(INCL)
  24.     $(CC) $(CFLAGS) -c $(DEFS) $*.c
  25.  
  26. interp.obj : interp.c $(INCL)
  27.     $(CC) $(CFLAGS) -c $(DEFS) $*.c
  28.  
  29. sc.obj : sc.c $(INCL) curs.h
  30.     $(CC) $(CFLAGS) -c $(DEFS) $*.c
  31.  
  32. cmds.obj : cmds.c $(INCL) curs.h
  33.     $(CC) $(CFLAGS) -c $(DEFS) $*.c
  34.  
  35. curs.obj : curs.c $(INCL) curs.h
  36.     $(CC) $(CFLAGS) -c $(DEFS) $*.c
  37.  
  38. gram.obj : gram.c $(INCL)
  39.     $(CC) $(CFLAGS) -c -W0 $*.c
  40.