forked from penma/findvolkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 777 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
CPPFLAGS = -MMD
CFLAGS = -std=gnu99 -Os -Wall -Wextra
CXXFLAGS = -Os -Wall -Wextra
DEFS = -DPACKAGE=\"encfs\" -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29 -DHAVE_DIRENT_D_TYPE=1 -DVERSION=\"1.9.5-32-g3d4ef00\" -DFVK_VERSION=\"0.1\"
CPPFLAGS += $(DEFS) -Ivendor -Iencfs
LDFLAGS = -Lencfs
LDLIBS = -lssl -lcrypto -lencfs -lfuse
fvk_objects = botched_rand_32.o botched_rand_64.o findvolkey.o
all: vendor encfs randtest findvolkey
-include $(fvk_objects:.o=.d)
findvolkey: $(fvk_objects) vendor/easylogging++.o vendor/tinyxml2.o
$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
vendor encfs randtest:
$(MAKE) -C $@
clean:
$(RM) $(fvk_objects) $(fvk_objects:.o=.d) findvolkey
$(MAKE) -C vendor clean
$(MAKE) -C randtest clean
$(MAKE) -C encfs clean
.PHONY: randtest vendor encfs