-
Notifications
You must be signed in to change notification settings - Fork 2
/
server.mk
171 lines (150 loc) · 5.34 KB
/
server.mk
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#Server Groups
server-all: server-assets server-locals server-transactions
server-assets: \
bin/assets/Account.class \
bin/assets/Ticket.class
server-locals: \
bin/NTSServer.class
server-transactions: \
bin/transaction/AddCredit.class \
bin/transaction/Buy.class \
bin/transaction/Create.class \
bin/transaction/Delete.class \
bin/transaction/Refund.class \
bin/transaction/Sell.class \
bin/transaction/TransactionException.class \
bin/transaction/Transaction.class
server-tests: \
bin/tests/TestAccount.class \
bin/tests/TestTicket.class \
bin/tests/TestAddCredit.class \
bin/tests/TestBuy.class \
bin/tests/TestCreate.class \
bin/tests/TestDelete.class \
bin/tests/TestRefund.class \
bin/tests/TestSell.class
server-test-all: \
server-test-account \
server-test-ticket \
server-test-addcredit \
server-test-buy \
server-test-create \
server-test-delete \
server-test-refund \
server-test-sell
#Server locals
bin/NTSServer.class: \
jsrc/NTSServer.java \
bin/assets/Account.class \
bin/assets/Ticket.class \
bin/transaction/AddCredit.class \
bin/transaction/Buy.class \
bin/transaction/Create.class \
bin/transaction/Delete.class \
bin/transaction/Refund.class \
bin/transaction/Sell.class \
bin/transaction/TransactionException.class \
bin/transaction/Transaction.class
javac $(cp) $(dest) jsrc/NTSServer.java
#Server assets
bin/assets/Account.class: \
jsrc/assets/Account.java
javac $(cp) $(dest) jsrc/assets/Account.java
bin/assets/Ticket.class: \
jsrc/assets/Ticket.java
javac $(cp) $(dest) jsrc/assets/Ticket.java
#Server transactions
bin/transaction/AddCredit.class: \
jsrc/transaction/AddCredit.java \
bin/transaction/Transaction.class \
bin/assets/Account.class
javac $(cp) $(dest) jsrc/transaction/AddCredit.java
bin/transaction/Buy.class: \
jsrc/transaction/Buy.java \
bin/transaction/Transaction.class \
bin/assets/Account.class \
bin/assets/Ticket.class
javac $(cp) $(dest) jsrc/transaction/Buy.java
bin/transaction/Create.class: \
jsrc/transaction/Create.java \
bin/transaction/Transaction.class \
bin/assets/Account.class
javac $(cp) $(dest) jsrc/transaction/Create.java
bin/transaction/Delete.class: \
jsrc/transaction/Delete.java \
bin/transaction/Transaction.class \
bin/assets/Account.class
javac $(cp) $(dest) jsrc/transaction/Delete.java
bin/transaction/Refund.class: \
jsrc/transaction/Refund.java \
bin/transaction/Transaction.class \
bin/assets/Account.class
javac $(cp) $(dest) jsrc/transaction/Refund.java
bin/transaction/Sell.class: \
jsrc/transaction/Sell.java \
bin/transaction/Transaction.class \
bin/assets/Account.class \
bin/assets/Ticket.class
javac $(cp) $(dest) jsrc/transaction/Sell.java
bin/transaction/TransactionException.class: \
jsrc/transaction/TransactionException.java
javac $(cp) $(dest) jsrc/transaction/TransactionException.java
bin/transaction/Transaction.class: \
jsrc/transaction/Transaction.java
javac $(cp) $(dest) jsrc/transaction/Transaction.java
#Server tests
server-test: bin/NTSServer.class
java $(cp) NTSServer \
resources/data.cua \
resources/data.atf \
resources/data.dtf
server-test-account: bin/tests/TestAccount.class
-java $(cp) org.junit.runner.JUnitCore tests.TestAccount
server-test-account2: bin/tests/TestAccount.class
java $(cp) tests.TestAccount
bin/tests/TestAccount.class: jsrc/tests/TestAccount.java \
bin/assets/Account.class
javac $(cp) $(dest) jsrc/tests/TestAccount.java
server-test-ticket: bin/tests/TestTicket.class
-java $(cp) org.junit.runner.JUnitCore tests.TestTicket
bin/tests/TestTicket.class: jsrc/tests/TestTicket.java \
bin/assets/Ticket.class
javac $(cp) $(dest) jsrc/tests/TestTicket.java
server-test-addcredit: bin/tests/TestAddCredit.class
-java $(cp) org.junit.runner.JUnitCore tests.TestAddCredit
server-test-addcredit2: bin/tests/TestAddCredit.class
java $(cp) tests.TestAddCredit
bin/tests/TestAddCredit.class: jsrc/tests/TestAddCredit.java \
bin/transaction/AddCredit.class
javac $(cp) $(dest) jsrc/tests/TestAddCredit.java
server-test-buy: bin/tests/TestBuy.class
-java $(cp) org.junit.runner.JUnitCore tests.TestBuy
bin/tests/TestBuy.class: jsrc/tests/TestBuy.java \
bin/transaction/Buy.class
javac $(cp) $(dest) jsrc/tests/TestBuy.java
server-test-create: bin/tests/TestCreate.class
-java $(cp) org.junit.runner.JUnitCore tests.TestCreate
server-test-create2: bin/tests/TestCreate.class
java $(cp) tests.TestCreate
bin/tests/TestCreate.class: jsrc/tests/TestCreate.java \
bin/transaction/Create.class
javac $(cp) $(dest) jsrc/tests/TestCreate.java
server-test-delete: bin/tests/TestDelete.class
-java $(cp) org.junit.runner.JUnitCore tests.TestDelete
server-test-delete2: bin/tests/TestDelete.class
java $(cp) tests.TestDelete
bin/tests/TestDelete.class: jsrc/tests/TestDelete.java \
bin/transaction/Delete.class
javac $(cp) $(dest) jsrc/tests/TestDelete.java
server-test-refund: bin/tests/TestRefund.class
-java $(cp) org.junit.runner.JUnitCore tests.TestRefund
server-test-refund2: bin/tests/TestRefund.class
java $(cp) tests.TestRefund
bin/tests/TestRefund.class: jsrc/tests/TestRefund.java \
bin/transaction/Refund.class
javac $(cp) $(dest) jsrc/tests/TestRefund.java
server-test-sell: bin/tests/TestSell.class
-java $(cp) org.junit.runner.JUnitCore tests.TestSell
bin/tests/TestSell.class: jsrc/tests/TestSell.java \
bin/transaction/Sell.class
javac $(cp) $(dest) jsrc/tests/TestSell.java