-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.build
More file actions
59 lines (41 loc) · 1.16 KB
/
Makefile.build
File metadata and controls
59 lines (41 loc) · 1.16 KB
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
include Makefile.common
OBJ = \
number.o elgamal.o \
positive.o small.o square.o authorize.o keytie.o \
ctx.o command.o execute.o \
account.o client.o \
bank.o server.o
CXX = g++
CXXFLAGS = -O3 -g
.PHONY: all
all: $(BIN) $(LIB) example qrspiral-all
libBankOfEuler.a: $(OBJ)
ar rs $@ $^
libBankOfEuler.so: $(OBJ)
$(CXX) -o $@ $(CXXFLAGS) -shared $^ -lgmp -lgmpxx -lm
bankshell: bankshell.o libBankOfEuler.a
$(CXX) -o $@ $(CXXFLAGS) $^ -lgmp -lgmpxx -lm
bankadmin: bankadmin.o libBankOfEuler.a
$(CXX) -o $@ $(CXXFLAGS) $^ -lgmp -lgmpxx -lm
bankserve: bankserve.o libBankOfEuler.a
$(CXX) -o $@ $(CXXFLAGS) $^ -lgmp -lgmpxx -lm
coinflip: coinflip.o libBankOfEuler.a
$(CXX) -o $@ $(CXXFLAGS) $^ -lgmp -lgmpxx -lm
flipserve:
@ echo Nothing to do for flipserve.
%.o: %.cpp
$(CXX) -o $@ $(CXXFLAGS) -c $<
$(OBJ): $(HDR)
bankshell.o bankadmin.o coinflip.o bankserve.o: $(HDR)
.PHONY: clean
clean: example-clean qrspiral-clean
rm -f *.o bankshell bankserve coinflip bankadmin $(LIB)
rm -rf $(PROJECT).*
rm -f qrspiral qrspiral*.pgm
.PHONY: example
example:
make -C example
.PHONY: example-clean
example-clean:
make -C example clean
include Makefile.qrspiral