-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 999 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
GCCPARAMS = -g -std=gnu99
YACC = bison
LEX = flex
.PHONY : default
default: aspis
aspis: php_parser.tab.c php_scanner.lex.c my_main.c ast.c ast_transformer.c ast_improver.c ast_parser.c file_structures.c
gcc $(GCCPARAMS) -o aspis php_scanner.lex.c php_parser.tab.c my_main.c ast.c ast_transformer.c ast_improver.c ast_parser.c file_structures.c -lfl
php_scanner.lex.c: php_scanner.l
flex -t php_scanner.l > php_scanner.lex.c
php_parser.tab.c php_parser.tab.h: php_parser.y
bison -dv php_parser.y
clean:
rm php_parser.tab.c php_parser.tab.h php_scanner.lex.c php_parser.output aspis
install: aspis
echo "Installing PHPAspis in your home directory..."
-rm -rI ~/aspis_home
cp -r ${CURDIR} ~/aspis_home
echo "export PATH=$$PATH:~/aspis_home" >> ~/.profile
echo "export ASPIS_HOME=~/aspis_home" >> ~/.profile
echo "Done!"
tests:
#TODO: fix the tests target
rm -rf tests/results
do_tests.py -dir tests -categories tests/taint_propagation/generic.categories -out tests/results/