- #10324: instalacija
[ossec-hids.git] / src / analysisd / Makefile
1 # Makefile for analysisd
2 # Daniel B. Cid <daniel.cid@gmail.com>||<daniel@underlinux.com.br>
3 # http://www.ossec.net/hids/
4
5 PT=../
6 NAME=ossec-analysisd
7
8 include ../Config.Make
9
10 LOCAL= analysisd.c stats.c rules.c rules_list.c config.c fts.c eventinfo.c eventinfo_list.c cleanevent.c active-response.c picviz.c prelude.c compiled_rules/*.o ${OS_CONFIG}
11 PLUGINS = decoders/decoders.a
12 ALERTS  = alerts/alerts.a
13
14 loga_OBJS = ${LOCAL} ${PLUGINS} ${ALERTS} ${OS_XML} ${OS_REGEX} ${OS_NET} ${OS_SHARED} ${OS_ZLIB} ${CPRELUDE}
15
16
17 logaudit:
18                 cd ./alerts; make
19                 cd ./decoders; make
20                 cd ./compiled_rules; make;
21                 $(CC) $(CFLAGS) ${OS_LINK} -I./ ${loga_OBJS} -o ${NAME}
22                 make logtest
23
24 logtest:
25                 cd ./decoders; make logtest
26                 cd ./compiled_rules; make;
27                 $(CC) $(CFLAGS) ${OS_LINK} -DTESTRULE -I./ testrule.c ${loga_OBJS} -o ossec-logtest 
28
29 clean:
30                 cd ./alerts; make clean
31                 cd ./decoders; make clean
32                 cd ./compiled_rules; make clean
33                 ${CLEAN}
34
35 build:
36                 ${BUILD}
37                 cp -pr ossec-logtest ${PT}../bin