7 PROGRAMS
=test-lexing test-parsing obfuscate
check compile
9 LIB_H
= token.h parse.h lib.h symbol.h scope.h expression.h target.h
11 LIB_OBJS
= parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
12 expression.o show-parse.o evaluate.o expand.o inline.o
20 # Install the 'check' binary as 'sparse', just to confuse people.
22 # "The better to keep you on your toes, my dear".
25 install -C
check $(PREFIX
)/bin
/sparse
27 test-lexing
: test-lexing.o
$(LIB_FILE
)
28 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
30 test-parsing
: test-parsing.o
$(LIB_FILE
)
31 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
33 compile
: compile.o compile-i386.o
$(LIB_FILE
)
34 gcc
$(LDFLAGS
) -o
$@
$< compile-i386.o
$(LIBS
)
36 obfuscate
: obfuscate.o
$(LIB_FILE
)
37 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
39 check: check.o
$(LIB_FILE
)
40 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
42 $(LIB_FILE
): $(LIB_OBJS
)
43 $(AR
) rcs
$(LIB_FILE
) $(LIB_OBJS
)
46 expression.o
: $(LIB_H
)
49 pre-process.o
: $(LIB_H
) pre-process.h
51 show-parse.o
: $(LIB_H
)
53 test-lexing.o
: $(LIB_H
)
54 test-parsing.o
: $(LIB_H
)
56 compile-i386.o
: $(LIB_H
)
60 echo
"#define GCC_INTERNAL_INCLUDE \"`$(CC) -print-file-name=include`\"" > pre-process.h
63 rm -f
*.
[oasi
] core core.
[0-9]* $(PROGRAMS
) pre-process.h