976c59432206eb05a77bd0a3af5e1b3899e84e73
[ossec-hids.git] / src / Makefile
1 # Makefile
2 # Daniel B. Cid <dcid@sourcefire.com>||<daniel@underlinux.com.br>
3 # http://www.ossec.net/hids/
4
5 none:
6                 @echo "Nothing selected ..."
7                 @echo "\"make all\" to compile everything."
8                 @echo "\"make server\" to build the server."
9                 @echo "\"make local\" to build the local."
10                 @echo "\"make agent\" to build the agent."
11                 @echo "\"make libs\" to build the libraries only."
12                 @echo "\"make clean\" to clean anything built."
13                 @echo "\"make setagent\" to set agent install."
14                 @echo "\"make setlocal\" to set local install."
15                 @echo "\"make setclang\" to use clang for building ossec."
16                 @echo "\"make unsetclang\" to use gcc for building ossec."
17                 @echo "\"make setprelude\" to enable prelude output."
18                 @echo "\"make setdb\" to enable database support."
19                 @echo "\"make unsetdb\" to disable database support."
20                 @echo "\"make setoneway\" to enable one-way connection to the manager."
21
22 clean:
23                 @/bin/sh ./Makeall clean
24                 rm -f ../bin/ossec*
25                 rm -f ../bin/manage_agents
26
27 all:
28                 @/bin/sh ./Makeall all
29
30 build:
31                 @/bin/sh ./Makeall build
32
33 libs:
34                 @/bin/sh ./Makeall libs
35
36 server:
37                 @/bin/sh ./InstallServer.sh
38
39 local:
40                 @/bin/sh ./InstallServer.sh local
41         
42 agent:
43                 @/bin/sh ./InstallAgent.sh
44         
45 setagent:
46                 @echo "CEXTRA=-DCLIENT" >> ./Config.OS
47
48 setclang:
49                 @sed -i '' -e "s/^CC=.*/CC=clang/g" LOCATION
50
51 unsetclang:
52                 @sed -i '' -e "s/^CC=.*/CC=gcc/g" LOCATION
53
54 setprelude:
55                 @echo "CPRELUDE=-DPRELUDE -lprelude `libprelude-config --pthread-cflags` `libprelude-config --libs`" >> ./Config.OS
56         
57 setdb:
58                 @cd ./os_dbd; echo "CDB=`./dbmake.sh`" >> ../Config.OS;
59 setmaxagents:
60                 @/bin/sh ./Makeall setmaxagents
61 unsetdb:
62                 @echo "CDB=" >> ./Config.OS;
63 setlocal:
64                 @echo "CEXTRA=-DLOCAL" >> ./Config.OS
65
66 setfullsubject:
67                 @echo "FEXTRA=-DCLEANFULL" >> ./Config.OS
68 setoneway:
69                 @echo "FEXTRA=-DONEWAY" >> ./Config.OS