-
Notifications
You must be signed in to change notification settings - Fork 5
/
makefile
40 lines (31 loc) · 896 Bytes
/
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
CXXFLAGS=$(CXX) -std=c++20 -Isrc -Oz -flto -Wundef -W -Wall -Wextra -Wpedantic -Wreorder -o $@ $@.cc
EXAMPLES:=example/sendExample example/receiveExample
FRONT:=src/tiers/front/genz
MIDDLE:=src/tiers/cmwA
BINARIES:=$(EXAMPLES) $(FRONT)
all:$(BINARIES)
.PHONY:all clean
#cmwA.mdl.hh: credentials.hh $(BASE)cmwA.mdl
# genz 2 $(BASE)cmwA.mdl
example/sendExample:example/sendExample.cc
$(CXXFLAGS)
size $@
example/receiveExample:example/receiveExample.cc
$(CXXFLAGS)
size $@
$(FRONT):$(FRONT).cc
$(CXXFLAGS)
size $@
$(MIDDLE):$(MIDDLE).cc
$(CXXFLAGS) -fno-threadsafe-statics -luring
size $@
clean:
rm -f $(BINARIES)
INSTALL_DIR=/usr/local/
install:
cp -f src/*.hh src/quicklz.* $(INSTALL_DIR)include
cp -f $(FRONT) $(MIDDLE) $(INSTALL_DIR)bin
cp -f $(BASE)cmwA.cfg $(INSTALL_DIR)etc
uninstall:
cd $(INSTALL_DIR)include && rm -f cmw_*.hh
cd $(INSTALL_DIR)bin && rm -f cmwA genz