7 PROGRAMS
=test-lexing test-parsing obfuscate
check compile test-linearize
9 LIB_H
= token.h parse.h lib.h symbol.h scope.h expression.h target.h linearize.h
11 LIB_OBJS
= target.o 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 linearize.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 test-linearize
: test-linearize.o
$(LIB_FILE
)
34 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
36 compile
: compile.o compile-i386.o
$(LIB_FILE
)
37 gcc
$(LDFLAGS
) -o
$@
$< compile-i386.o
$(LIBS
)
39 obfuscate
: obfuscate.o
$(LIB_FILE
)
40 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
42 check: check.o
$(LIB_FILE
)
43 gcc
$(LDFLAGS
) -o
$@
$< $(LIBS
)
45 $(LIB_FILE
): $(LIB_OBJS
)
46 $(AR
) rcs
$(LIB_FILE
) $(LIB_OBJS
)
49 expression.o
: $(LIB_H
)
52 pre-process.o
: $(LIB_H
) pre-process.h
54 show-parse.o
: $(LIB_H
)
58 test-lexing.o
: $(LIB_H
)
59 test-parsing.o
: $(LIB_H
)
60 test-linearize.o
: $(LIB_H
)
62 compile-i386.o
: $(LIB_H
)
66 echo
"#define GCC_INTERNAL_INCLUDE \"`$(CC) -print-file-name=include`\"" > pre-process.h
69 rm -f
*.
[oasi
] core core.
[0-9]* $(PROGRAMS
) pre-process.h