-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (38 loc) · 2.57 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
CC=g++
DEBUG=-g
CFLAGS=$(DEBUG) -c
DB_SOURCE=initialize_db.cpp
DB_EXECUTABLE=initialize_db
ORDER_SOURCE=order_server.cpp
ORDER_INCLUDE=-I. -I./include -I./include
ORDER_LIB=./lib/libxmlrpc_client++.a ./lib/libxmlrpc_client.a -lcurl ./lib/libxmlrpc_packetsocket.a -L/usr/lib/i386-linux-gnu ./lib/libxmlrpc_server_abyss++.a ./lib/libxmlrpc_server++.a ./lib/libxmlrpc_server_abyss.a ./lib/libxmlrpc_server.a ./lib/libxmlrpc_abyss.a -lpthread ./lib/libxmlrpc++.a ./lib/libxmlrpc.a ./lib/libxmlrpc_util.a ./lib/libxmlrpc_xmlparse.a ./lib/libxmlrpc_xmltok.a
ORDER_EXECUTABLE=order_server
CATALOG_SOURCE=catalog_server.cpp
CATALOG_INCLUDE=-I. -I./include -I./include
CATALOG_LIB=./lib/libxmlrpc_server_abyss++.a ./lib/libxmlrpc_server++.a ./lib/libxmlrpc_server_abyss.a ./lib/libxmlrpc_server.a ./lib/libxmlrpc_abyss.a -lpthread ./lib/libxmlrpc++.a ./lib/libxmlrpc.a ./lib/libxmlrpc_util.a ./lib/libxmlrpc_xmlparse.a ./lib/libxmlrpc_xmltok.a -lsqlite3
CATALOG_EXECUTABLE=catalog_server
FRONTEND_SOURCE=frontend_server.cpp
FRONTEND_INCLUDE=-I. -I./include -I./include
FRONTEND_LIB=./lib/libxmlrpc_client++.a ./lib/libxmlrpc_client.a -lcurl ./lib/libxmlrpc_packetsocket.a -L/usr/lib/i386-linux-gnu ./lib/libxmlrpc_server_abyss++.a ./lib/libxmlrpc_server++.a ./lib/libxmlrpc_server_abyss.a ./lib/libxmlrpc_server.a ./lib/libxmlrpc_abyss.a -lpthread ./lib/libxmlrpc++.a ./lib/libxmlrpc.a ./lib/libxmlrpc_util.a ./lib/libxmlrpc_xmlparse.a ./lib/libxmlrpc_xmltok.a
FRONTEND_EXECUTABLE=frontend_server
CLIENT_SOURCE=client.cpp
CLIENT_INCLUDE=-I. -I./include -I./include
CLIENT_LIB=./lib/libxmlrpc_client++.a ./lib/libxmlrpc_client.a ./lib/libxmlrpc++.a ./lib/libxmlrpc.a ./lib/libxmlrpc_util.a ./lib/libxmlrpc_xmlparse.a ./lib/libxmlrpc_xmltok.a -L/usr/lib/i386-linux-gnu -lcurl ./lib/libxmlrpc_packetsocket.a
CLIENT_EXECUTABLE=client
all: $(CLIENT_SOURCE) $(ORDER_SOURCE) $(CATALOG_SOURCE) $(FRONTEND_SOURCE) $(DB_SOURCE) $(DB_EXECUTABLE) $(CLIENT_EXECUTABLE) $(ORDER_EXECUTABLE) $(CATALOG_EXECUTABLE) $(FRONTEND_EXECUTABLE)
$(ORDER_EXECUTABLE):
$(CC) $(CFLAGS) $(ORDER_INCLUDE) [email protected] -o [email protected]
$(CC) -o $@ [email protected] $(ORDER_LIB)
$(CATALOG_EXECUTABLE):
$(CC) $(CFLAGS) $(CATALOG_INCLUDE) [email protected] -o [email protected]
$(CC) -o $@ [email protected] $(CATALOG_LIB)
$(FRONTEND_EXECUTABLE):
$(CC) $(CFLAGS) $(FRONTEND_INCLUDE) [email protected] -o [email protected]
$(CC) -o $@ [email protected] $(FRONTEND_LIB)
$(CLIENT_EXECUTABLE):
$(CC) $(CFLAGS) $(CLIENT_INCLUDE) [email protected] -o [email protected]
$(CC) [email protected] $(CLIENT_LIB) -o $@
$(DB_EXECUTABLE):
$(CC) [email protected] -lsqlite3 -o $@
clean:
rm -rf *.o $(CLIENT_EXECUTABLE) $(CATALOG_EXECUTABLE) $(ORDER_EXECUTABLE) $(FRONTEND_EXECUTABLE) $(DB_EXECUTABLE) inventory.db