6 PROGRAMS
=test-lexing test-parsing obfuscate
check
8 LIB_H
= token.h parse.h lib.h symbol.h scope.h expression.h target.h
10 LIB_OBJS
= parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
11 expression.o show-parse.o evaluate.o inline.o
19 # Install the 'check' binary as 'sparse', just to confuse people.
21 # "The better to keep you on your toes, my dear".
24 install -C
check $(PREFIX
)/bin
/sparse
26 test-lexing
: test-lexing.o
$(LIB_FILE
)
29 test-parsing
: test-parsing.o
$(LIB_FILE
)
32 obfuscate
: obfuscate.o
$(LIB_FILE
)
35 check: check.o
$(LIB_FILE
)
38 $(LIB_FILE
): $(LIB_OBJS
)
39 $(AR
) rcs
$(LIB_FILE
) $(LIB_OBJS
)
42 expression.o
: $(LIB_H
)
45 pre-process.o
: $(LIB_H
) pre-process.h
47 show-parse.o
: $(LIB_H
)
49 test-lexing.o
: $(LIB_H
)
50 test-parsing.o
: $(LIB_H
)
54 echo
"#define GCC_INTERNAL_INCLUDE \"`$(CC) -print-file-name=include`\"" > pre-process.h
57 rm -f
*.
[oasi
] core core.
[0-9]* $(PROGRAMS
) pre-process.h