Started fixing IPC problems with SMTP and QUEUE Server
[fmail.git] / compile.sh
blob09176cacbaaa607ae10508b31b784e77bc6cfb0f
1 #!/bin/bash
3 rm -fr bin
5 mkdir -p bin
7 CFLAGS="-g"
9 echo "Compiling libfmail"
10 g++ src/baseserver.cpp -I./include ${CFLAGS} -c -o bin/baseserver.o
11 g++ src/posixsocket.cpp -I./include ${CFLAGS} -c -o bin/socket.o
13 g++ src/ipcmsg.cpp -I./include ${CFLAGS} -c -o bin/ipcmsg.o
14 g++ src/socketipc.cpp -I./include ${CFLAGS} -c -o bin/socketipc.o
15 g++ src/ipc.cpp -I./include ${CFLAGS} -c -o bin/ipc.o
17 g++ src/posix-thread.cpp -I./include ${CFLAGS} -c -o bin/thread.o
18 g++ src/posix-lock.cpp -I./include ${CFLAGS} -c -o bin/lock.o
19 g++ src/posix-sem.cpp -I./include ${CFLAGS} -c -o bin/semaphore.o
21 g++ src/threadpool.cpp -I./include ${CFLAGS} -c -o bin/threadpool.o
23 g++ bin/baseserver.o bin/socket.o bin/socketipc.o bin/ipc.o bin/ipcmsg.o bin/lock.o bin/thread.o bin/threadpool.o bin/semaphore.o -lpthread -lpcrecpp -lstdc++ -shared -o bin/libfmail.so
25 #echo "Compiling Testcases"
26 #g++ testcase/ipctest.cpp -lfmail -g -I./include -L./bin -o bin/ipctest
27 #g++ testcase/ipccommand.cpp -lfmail -g -I./include -L./bin -o bin/ipccommand
29 echo "Compiling Servers"
30 g++ backends/auth/fsauth.cpp -lstdc++ -I./include -L./bin -lfmail `odkutils-config --libs` ${CFLAGS} -o bin/fmail-fsauth
31 g++ backends/mailbox/fsmailbox.cpp -lstdc++ -I./include -L./bin -lfmail `odkutils-config --libs` ${CFLAGS} -o bin/fmail-fsmailbox
32 g++ backends/queue/queueman.cpp -lstdc++ -I./include -L./bin -lfmail ${CFLAGS} -o bin/fmail-queue
34 g++ backends/protocol/pop3.cpp -I./include -L./bin -lfmail -lstdc++ -lpcrecpp ${CFLAGS} -o bin/fmail-pop3
35 g++ backends/protocol/smtp.cpp -I./include -L./bin -lfmail -lstdc++ -lpcrecpp ${CFLAGS} -o bin/fmail-smtp