2 # Daniel B. Cid <dcid@sourcefire.com>||<daniel@underlinux.com.br>
3 # http://www.ossec.net/hids/
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."
23 @/bin/sh ./Makeall clean
25 rm -f ../bin/manage_agents
28 @/bin/sh ./Makeall all
31 @/bin/sh ./Makeall build
34 @/bin/sh ./Makeall libs
37 @/bin/sh ./InstallServer.sh
40 @/bin/sh ./InstallServer.sh local
43 @/bin/sh ./InstallAgent.sh
46 @echo "CEXTRA=-DCLIENT" >> ./Config.OS
49 @sed -i '' -e "s/^CC=.*/CC=clang/g" LOCATION
52 @sed -i '' -e "s/^CC=.*/CC=gcc/g" LOCATION
55 @echo "CPRELUDE=-DPRELUDE -lprelude `libprelude-config --pthread-cflags` `libprelude-config --libs`" >> ./Config.OS
58 @cd ./os_dbd; echo "CDB=`./dbmake.sh`" >> ../Config.OS;
60 @/bin/sh ./Makeall setmaxagents
62 @echo "CDB=" >> ./Config.OS;
64 @echo "CEXTRA=-DLOCAL" >> ./Config.OS
67 @echo "FEXTRA=-DCLEANFULL" >> ./Config.OS
69 @echo "FEXTRA=-DONEWAY" >> ./Config.OS