4 PROGRAMS
=test-lexing test-parsing
6 HEADERS
=token.h parse.h lib.h symbol.h scope.h expression.h
8 COMMON
= parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
9 expression.o show-parse.o evaluate.o
13 test-lexing
: test-lexing.o
$(COMMON
)
14 gcc
-o
$@
$< $(COMMON
)
16 test-parsing
: test-parsing.o
$(COMMON
)
17 gcc
-o
$@
$< $(COMMON
)
19 evaluate.o
: $(HEADERS
)
20 expression.o
: $(HEADERS
)
23 pre-process.o
: $(HEADERS
)
25 show-parse.o
: $(HEADERS
)
27 test-lexing.o
: $(HEADERS
)
28 test-parsing.o
: $(HEADERS
)
29 tokenize.o
: $(HEADERS
)
32 rm -f
*.
[oasi
] core core.
[0-9]* $(PROGRAMS
)