2 CFLAGS
= -Wall
-W
-I.
/include
5 all: bin
/libfmail.so bin
/fmail-fsauth bin
/fmail-fsmailbox bin
/fmail-queue bin
/fmail-pop3 bin
/fmail-smtp
7 bin
/baseserver.o
: src
/baseserver.
cpp
9 $(CC
) $^
$(CFLAGS
) -c
-o
$@
10 bin
/socket.o
: src
/posixsocket.
cpp
11 $(CC
) $^
$(CFLAGS
) -c
-o
$@
12 bin
/ipcmsg.o
: src
/ipcmsg.
cpp
13 $(CC
) $^
$(CFLAGS
) -c
-o
$@
14 bin
/socketipc.o
: src
/socketipc.
cpp
15 $(CC
) $^
$(CFLAGS
) -c
-o
$@
16 bin
/ipc.o
: src
/ipc.
cpp
17 $(CC
) $^
$(CFLAGS
) -c
-o
$@
18 bin
/thread.o
: src
/posix-thread.
cpp
19 $(CC
) $^
$(CFLAGS
) -c
-o
$@
20 bin
/lock.o
: src
/posix-lock.
cpp
21 $(CC
) $^
$(CFLAGS
) -c
-o
$@
22 bin
/semaphore.o
: src
/posix-sem.
cpp
23 $(CC
) $^
$(CFLAGS
) -c
-o
$@
24 bin
/threadpool.o
: src
/threadpool.
cpp
25 $(CC
) $^
$(CFLAGS
) -c
-o
$@
26 bin
/configuration.o
: src
/configuration.
cpp
27 $(CC
) $^
$(CFLAGS
) -c
-o
$@
28 bin
/libfmail.so
: 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 bin
/configuration.o
29 $(CC
) $^
-lpthread
-lpcrecpp
-lstdc
++ -shared
-o
$@
31 #echo "Compiling Testcases"
32 #$(CC) testcase/ipctest.cpp -lfmail -g -I./include -L./bin -o bin/ipctest
33 #$(CC) testcase/ipccommand.cpp -lfmail -g -I./include -L./bin -o bin/ipccommand
35 bin
/fmail-fsauth
: backends
/auth
/fsauth.
cpp
36 $(CC
) $^
-lstdc
++ -L.
/bin
-lfmail
$(CFLAGS
) -o
$@
37 bin
/fmail-fsmailbox
: backends
/mailbox
/fsmailbox.
cpp
38 $(CC
) $^
-lstdc
++ -L.
/bin
-lfmail
$(CFLAGS
) -o
$@
39 bin
/fmail-queue
: backends
/queue
/queueman.
cpp
40 $(CC
) $^
-lstdc
++ -L.
/bin
-lfmail
$(CFLAGS
) -o
$@
41 bin
/fmail-pop3
: backends
/protocol
/pop3.
cpp
42 $(CC
) $^
-L.
/bin
-lfmail
-lstdc
++ -lpcrecpp
$(CFLAGS
) -o
$@
43 bin
/fmail-smtp
: backends
/protocol
/smtp.
cpp
44 $(CC
) $^
-L.
/bin
-lfmail
-lstdc
++ -lpcrecpp
$(CFLAGS
) -o
$@