-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
134 lines (91 loc) · 6.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
CXX = g++
CC = gcc
AR = ar
LIBXML2_INCLUDE_PATH = /usr/include/libxml2
PREFIX = /usr
all: sysrepod client_SRD/clientsrd client_SRD/opDStoreClient client_SRD/yangTest client_SRD/testTransaction client_SRD/replaceSubtree client_SRD/opDStoreSubTree1 client_SRD/opDStoreSubTree2 client_SRD/opDStoreGetSubTree client_SRD/hugeTest client_SRD/signalTest client_SRD/xsltTest client_SRD/xsltTest_1 client_SRD/deleteNodeConstraintFailTest server/genHuge
clean:
rm -f *.o sysrepod libsrd.a server/genHuge client_SRD/hugeTest client_SRD/testTransaction client_SRD/replaceSubtree client_SRD/yangTest client_SRD/clientsrd client_SRD/opDStoreClient client_SRD/opDStoreSubTree1 client_SRD/opDStoreSubTree2 client_SRD/signalTest client_SRD/xsltTest client_SRD/xsltTest_1 client_SRD/deleteNodeConstraintFailTest client_SRD/opDStoreGetSubTree client_SRD/*.o
sysrepod: common.o mainSysRepoD.o ClientSet.o DataStore.o DataStoreSet.o Client.o ClientSRD.o global.h application.h OpDataStore.o OpDataStoreSet.o
$(CXX) -g -o sysrepod mainSysRepoD.o common.o ClientSet.o DataStore.o DataStoreSet.o OpDataStore.o OpDataStoreSet.o Client.o ClientSRD.o -pthread -lxml2 -lxslt
mainSysRepoD.o: mainSysRepoD.cpp global.h application.h
$(CXX) -c -I$(LIBXML2_INCLUDE_PATH) -g mainSysRepoD.cpp
common.o: common.cpp common.h
$(CXX) -c -g common.cpp
ClientSet.o: ClientSet.cpp ClientSet.h
$(CXX) -I$(LIBXML2_INCLUDE_PATH) -c -g ClientSet.cpp
Client.o: Client.cpp Client.h
$(CXX) -c -g Client.cpp
ClientSRD.o: ClientSRD.cpp ClientSRD.h
$(CXX) -I$(LIBXML2_INCLUDE_PATH) -c -g ClientSRD.cpp
DataStore.o: DataStore.cpp DataStore.h
$(CXX) -I$(LIBXML2_INCLUDE_PATH) -c -g DataStore.cpp
DataStoreSet.o: DataStoreSet.cpp DataStoreSet.h
$(CXX) -I$(LIBXML2_INCLUDE_PATH) -c -g DataStoreSet.cpp
OpDataStore.o: OpDataStore.cpp OpDataStore.h
$(CXX) -c -g OpDataStore.cpp
OpDataStoreSet.o: OpDataStoreSet.cpp OpDataStoreSet.h
$(CXX) -I$(LIBXML2_INCLUDE_PATH) -c -g OpDataStoreSet.cpp
client_SRD/clientsrd: client_SRD/mainSRDClient.o srd.o libsrd.a
$(CC) -g -o client_SRD/clientsrd client_SRD/mainSRDClient.o libsrd.a -lxml2
client_SRD/mainSRDClient.o: client_SRD/mainSRDClient.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainSRDClient.o -c client_SRD/mainSRDClient.c
client_SRD/opDStoreClient: client_SRD/mainOpDStoreMgmtClient.o srd.o libsrd.a
$(CC) -g -o client_SRD/opDStoreClient client_SRD/mainOpDStoreMgmtClient.o libsrd.a -lxml2
client_SRD/mainOpDStoreMgmtClient.o: client_SRD/mainOpDStoreMgmtClient.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainOpDStoreMgmtClient.o -c client_SRD/mainOpDStoreMgmtClient.c
client_SRD/opDStoreSubTree1: client_SRD/mainOpDStoreSubTree1.o srd.o libsrd.a
$(CC) -g -o client_SRD/opDStoreSubTree1 client_SRD/mainOpDStoreSubTree1.o libsrd.a -lxml2
client_SRD/mainOpDStoreSubTree1.o: client_SRD/mainOpDStoreSubTree1.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainOpDStoreSubTree1.o -c client_SRD/mainOpDStoreSubTree1.c
client_SRD/opDStoreSubTree2: client_SRD/mainOpDStoreSubTree2.o srd.o libsrd.a
$(CC) -g -o client_SRD/opDStoreSubTree2 client_SRD/mainOpDStoreSubTree2.o libsrd.a -lxml2
client_SRD/mainOpDStoreSubTree2.o: client_SRD/mainOpDStoreSubTree2.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainOpDStoreSubTree2.o -c client_SRD/mainOpDStoreSubTree2.c
client_SRD/opDStoreGetSubTree: client_SRD/mainOpDStoreGetSubTree.o srd.o libsrd.a
$(CC) -g -o client_SRD/opDStoreGetSubTree client_SRD/mainOpDStoreGetSubTree.o libsrd.a -lxml2
client_SRD/mainOpDStoreGetSubTree.o: client_SRD/mainOpDStoreGetSubTree.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainOpDStoreGetSubTree.o -c client_SRD/mainOpDStoreGetSubTree.c
client_SRD/signalTest: client_SRD/mainSignalExample.o
$(CC) -g -o client_SRD/signalTest client_SRD/mainSignalExample.o libsrd.a -lxml2
client_SRD/mainSignalExample.o: client_SRD/mainSignalExample.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainSignalExample.o -c client_SRD/mainSignalExample.c
client_SRD/xsltTest: client_SRD/mainXSLTExample.o
$(CC) -g -o client_SRD/xsltTest client_SRD/mainXSLTExample.o libsrd.a -lxml2
client_SRD/mainXSLTExample.o: client_SRD/mainXSLTExample.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainXSLTExample.o -c client_SRD/mainXSLTExample.c
client_SRD/xsltTest_1: client_SRD/mainXSLTExample_1.o
$(CC) -g -o client_SRD/xsltTest_1 client_SRD/mainXSLTExample_1.o libsrd.a -lxml2
client_SRD/mainXSLTExample_1.o: client_SRD/mainXSLTExample_1.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainXSLTExample_1.o -c client_SRD/mainXSLTExample_1.c
client_SRD/hugeTest: client_SRD/mainHugeTest.o
$(CC) -g -o client_SRD/hugeTest client_SRD/mainHugeTest.o libsrd.a -lxml2
client_SRD/mainHugeTest.o: client_SRD/mainHugeTest.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainHugeTest.o -c client_SRD/mainHugeTest.c
client_SRD/replaceSubtree: client_SRD/mainReplaceSubtree.o
$(CC) -g -o client_SRD/replaceSubtree client_SRD/mainReplaceSubtree.o libsrd.a -lxml2
client_SRD/mainReplaceSubtree.o: client_SRD/mainReplaceSubtree.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainReplaceSubtree.o -c client_SRD/mainReplaceSubtree.c
client_SRD/testTransaction: client_SRD/mainTestTransaction.o
$(CC) -g -o client_SRD/testTransaction client_SRD/mainTestTransaction.o libsrd.a -lxml2
client_SRD/mainTestTransaction.o: client_SRD/mainTestTransaction.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainTestTransaction.o -c client_SRD/mainTestTransaction.c
client_SRD/yangTest: client_SRD/mainYangTest.o
$(CC) -g -o client_SRD/yangTest client_SRD/mainYangTest.o libsrd.a -lxml2
client_SRD/mainYangTest.o: client_SRD/mainYangTest.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainYangTest.o -c client_SRD/mainYangTest.c
client_SRD/deleteNodeConstraintFailTest: client_SRD/mainDeleteNodeConstraintFailTest.o
$(CC) -g -o client_SRD/deleteNodeConstraintFailTest client_SRD/mainDeleteNodeConstraintFailTest.o libsrd.a -lxml2
client_SRD/mainDeleteNodeConstraintFailTest.o: client_SRD/mainDeleteNodeConstraintFailTest.c
$(CC) -I$(LIBXML2_INCLUDE_PATH) -I. -g -o client_SRD/mainDeleteNodeConstraintFailTest.o -c client_SRD/mainDeleteNodeConstraintFailTest.c
server/genHuge: server/genHugeXML.c
$(CC) -g -o server/genHuge server/genHugeXML.c
srd.o: srd.c srd.h
$(CC) -I$(LIBXML2_INCLUDE_PATH) -g -c srd.c
libsrd.a: srd.o
$(AR) rcs libsrd.a srd.o
install: sysrepod
install -d $(DESTDIR)/$(PREFIX)/bin/
cp sysrepod $(DESTDIR)/$(PREFIX)/bin/
install -d $(DESTDIR)/etc/sysrepod/
cp server/param $(DESTDIR)/etc/sysrepod