-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile.in
83 lines (70 loc) · 2.31 KB
/
Makefile.in
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
EXE_EXTN =
OBJ_EXTN = .o
LEXER = lex.yyc lex.yyp lex.yyperl lex.yyphp lex.yyruby
LEX = @LEX@
CC = @CC@
prefix = @prefix@
exec_prefix = @exec_prefix@
BINDIR = @bindir@
LIBDIR = @libdir@
MANDIR = @mandir@
SHAREDIR = @datadir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
CFLAGS = -Wall -g @CFLAGS@ @DEFS@ -DDATADIR=\"$(SHAREDIR)\"
LDFLAGS = -Wall -g @LDFLAGS@
LEXFLAGS = -F -8
BIN = rats
OBJ = engine$(OBJ_EXTN) \
lex.yyc$(OBJ_EXTN) \
lex.yyp$(OBJ_EXTN) \
lex.yyperl$(OBJ_EXTN) \
lex.yyphp$(OBJ_EXTN) \
lex.yyruby$(OBJ_EXTN) \
hash$(OBJ_EXTN) \
kazhash$(OBJ_EXTN) \
main$(OBJ_EXTN) \
report$(OBJ_EXTN) \
vuln_db$(OBJ_EXTN)\
getopt$(OBJ_EXTN)
LIBS = @LIBS@
SOURCES = $(OBJ:$(OBJ_EXTN)=.c)
$(BIN): $(OBJ)
$(CC) $(LDFLAGS) -o $(BIN) $(OBJ) $(LIBS)
%$(OBJ_EXTN): %.c
$(CC) $(CFLAGS) -o $@ -c $<
lex: c-lex.l python-lex.l perl-lex.l ruby-lex.l
$(LEX) $(LEXFLAGS) -Pyyc c-lex.l
$(LEX) $(LEXFLAGS) -Pyyp python-lex.l
$(LEX) $(LEXFLAGS) -Pyyperl perl-lex.l
$(LEX) $(LEXFLAGS) -Pyyphp php-lex.l
$(LEX) $(LEXFLAGS) -Pyyruby ruby-lex.l
install: $(BIN)
./mkinstalldirs $(BINDIR) $(LIBDIR) $(MANDIR) $(MANDIR)/man1 $(SHAREDIR)
$(INSTALL_PROGRAM) $(BIN) $(BINDIR)
$(INSTALL_DATA) rats-python.xml $(SHAREDIR)
$(INSTALL_DATA) rats-c.xml $(SHAREDIR)
$(INSTALL_DATA) rats-perl.xml $(SHAREDIR)
$(INSTALL_DATA) rats-php.xml $(SHAREDIR)
$(INSTALL_DATA) rats-ruby.xml $(SHAREDIR)
$(INSTALL_DATA) rats-openssl.xml $(SHAREDIR)
$(INSTALL_DATA) rats.1 $(MANDIR)/man1
clean:
rm -f $(OBJ) *~ $(BIN) core
distclean: clean
rm -f config.log config.status config.cache Makefile
major: distclean lex
echo -n '#define VERSION_MAJOR ' > version.tmp
expr `head -n1 version.h | cut -d ' ' -f 3` + 1 >> version.tmp
echo '#define VERSION_MINOR 0' >> version.tmp
mv -f version.tmp version.h
cvs commit -m "Incremented major version number" version.h
minor: distclean lex
head -n1 version.h > version.tmp
echo -n '#define VERSION_MINOR ' >> version.tmp
expr `tail -n1 version.h | cut -d ' ' -f 3` + 1 >> version.tmp
mv -f version.tmp version.h
cvs commit -m "Incremented minor version number" version.h
# vim: noexpandtab:ts=8:sw=8:sts=0