home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-06-04 | 941 b | 42 lines |
- ## Makefile for EXPR, an expression evaluator made using PGEN.
- ## Copyright (C) 1992 Keith L. Robertson All Rights Reserved
- ##
- ## Commands are for the Zortech C++ compiler.
- ## It should be easy to modify the makefile for other compilers.
-
- M = s
- I =
- OPT_FLAG = -o-space
- REG_FLAG = -DTESTING
- DBG_FLAG = -g -C -DTESTING
-
- FLAGS = $(OPT_FLAG)
-
-
- ## Compile and link
- CC = ztc -m$M -c -o$* $(FLAGS) $*
- LINK = ztc -m$M$I -o$* $(FLAGS) $**
- PGEN = +PGEN -IC $** >$@
-
- .c.obj :
- $(CC)
- .cpp.obj :
- $(CC)
- .obj.exe :
- $(LINK)
- .pgn.c :
- $(PGEN)
-
-
- ######################### Dependency List #########################
-
- EXPR.exe : expr_lex.obj pg_parse.obj expr_par.obj expr_sem.obj
- $(LINK)
-
- EXPR_LEX.obj : expr_lex.h EXPR_LEX.C
- PG_PARSE.obj : expr_lex.h pg_parse.h PG_PARSE.C
- EXPR_PAR.obj : expr_lex.h expr_sem.h pg_parse.h EXPR_PAR.C
- EXPR_SEM.obj : expr_lex.h pg_parse.h EXPR_SEM.C
-
- EXPR_PAR.C : EXPR_PAR.PGN
-