home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / pgen_2 / makefile < prev    next >
Encoding:
Makefile  |  1993-06-04  |  941 b   |  42 lines

  1. ##    Makefile for EXPR, an expression evaluator made using PGEN.
  2. ##    Copyright (C) 1992    Keith L. Robertson    All Rights Reserved
  3. ##
  4. ##    Commands are for the Zortech C++ compiler.
  5. ##    It should be easy to modify the makefile for other compilers.
  6.  
  7. M    = s
  8. I    =
  9. OPT_FLAG = -o-space
  10. REG_FLAG = -DTESTING
  11. DBG_FLAG = -g -C -DTESTING
  12.  
  13. FLAGS = $(OPT_FLAG)
  14.  
  15.  
  16. ##    Compile and link
  17. CC   = ztc -m$M -c -o$*  $(FLAGS)  $*
  18. LINK = ztc -m$M$I  -o$*  $(FLAGS)  $**
  19. PGEN = +PGEN -IC $** >$@
  20.  
  21. .c.obj :
  22.     $(CC)
  23. .cpp.obj :
  24.     $(CC)
  25. .obj.exe :
  26.     $(LINK)
  27. .pgn.c :
  28.     $(PGEN)
  29.  
  30.  
  31. ######################### Dependency List #########################
  32.  
  33. EXPR.exe : expr_lex.obj pg_parse.obj expr_par.obj expr_sem.obj
  34.     $(LINK)
  35.  
  36. EXPR_LEX.obj : expr_lex.h EXPR_LEX.C
  37. PG_PARSE.obj : expr_lex.h pg_parse.h PG_PARSE.C
  38. EXPR_PAR.obj : expr_lex.h expr_sem.h pg_parse.h EXPR_PAR.C
  39. EXPR_SEM.obj : expr_lex.h pg_parse.h EXPR_SEM.C
  40.  
  41. EXPR_PAR.C   : EXPR_PAR.PGN
  42.