Added new fs mailbox server
[fmail.git] / compile.sh
blobbb5ff882345e930d23eca163919ac74fc9653577
1 #!/bin/bash
3 rm -fr bin
5 mkdir -p bin
7 CFLAGS="-g `odkutils-config --cflags`"
9 echo "Compiling libfmail"
10 g++ src/baseserver.cpp -I./include ${CFLAGS} -c -o bin/baseserver.o
11 g++ src/socket.cpp -I./include ${CFLAGS} -c -o bin/socket.o
12 g++ src/socketset.cpp -I./include ${CFLAGS} -c -o bin/socketset.o
13 g++ src/ipcmsg.cpp -I./include ${CFLAGS} -c -o bin/ipcmsg.o
15 g++ src/socketipc.cpp -I./include ${CFLAGS} -c -o bin/socketipc.o
16 g++ src/ipc.cpp -I./include ${CFLAGS} -c -o bin/ipc.o
18 g++ bin/baseserver.o bin/socket.o bin/socketipc.o bin/ipc.o bin/ipcmsg.o `odkutils-config --libs` -lstdc++ -shared -o bin/libfmail.so
20 #echo "Compiling Testcases"
21 #g++ testcase/ipctest.cpp -lfmail -g -I./include -L./bin -o bin/ipctest
22 #g++ testcase/ipccommand.cpp -lfmail -g -I./include -L./bin -o bin/ipccommand
24 echo "Compiling Protocols"
25 g++ backends/protocol/pop3.cpp -lstdc++ `odkutils-config --libs --cflags` -I./include -L./bin -lfmail -shared ${CFLAGS} -o bin/libfmail-pop3.so
26 g++ backends/protocol/smtp.cpp -lstdc++ -I./include -L./bin -lfmail -shared ${CFLAGS} -o bin/libfmail-smtp.so
27 g++ backends/auth/fsauth.cpp -lstdc++ -I./include -L./bin -lfmail `odkutils-config --libs` ${CFLAGS} -o bin/fmail-fsauth
28 g++ backends/mailbox/fsmailbox.cpp -lstdc++ -I./include -L./bin -lfmail `odkutils-config --libs` ${CFLAGS} -o bin/fmail-fsmailbox
30 echo "Compiling FancyMail Server"
31 g++ src/fmail.cpp -I./include -L./bin -lfmail -lstdc++ `odkutils-config --libs` ${CFLAGS} -o bin/fmail
32 g++ backends/protocol/pop3.cpp -I./include -L./bin -lfmail -lstdc++ `odkutils-config --libs` ${CFLAGS} -DSTANDALONE -o bin/fmail-pop3
33 g++ backends/protocol/smtp.cpp -I./include -L./bin -lfmail -lstdc++ `odkutils-config --libs` ${CFLAGS} -DSTANDALONE -o bin/fmail-smtp