-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·24 lines (22 loc) · 818 Bytes
/
Makefile
File metadata and controls
executable file
·24 lines (22 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
binary_folder = linux_x64
fuse_link_name = fuse3
endif
ifeq ($(UNAME_S),Darwin)
binary_folder = macOS
fuse_link_name = osxfuse
endif
secfs:
gcc -O3 -Wall -Werror -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code \
-o secfs \
src/main.c src/security/encryption.c src/utilities/utilities.c src/filesystem/filesystem.c src/db/indexdb.c src/db/blockdb.c src/filesystem/secfs.c src/security/passwordinput.c \
-Lvendor/openssl/$(binary_folder) \
-Lvendor/fuse/$(binary_folder) \
-Lvendor/uuid/$(binary_folder) \
-Ivendor/openssl/include \
-Ivendor/fuse/include \
-Ivendor/uuid/include \
-lssl -lcrypto -l$(fuse_link_name) -luuid -lpthread
clean:
rm secfs