forked from matteoserva/MegaFuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (28 loc) · 956 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
40
41
42
43
44
45
TARGET = MegaFuse
###############
SRC = src/MegaFuseApp.cpp src/file_cache_row.cpp src/EventsHandler.cpp src/MegaFuse.cpp src/megafusecallbacks.cpp src/megafusemodel.cpp src/megaposix.cpp src/Config.cpp src/fuseImpl.cpp src/megacli.cpp
SRC += sdk/megabdb.cpp sdk/megaclient.cpp sdk/megacrypto.cpp
OUT = $(TARGET)
OBJ = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o,$(SRC)))
.PHONY:
# include directories
INCLUDES = -I inc -I /usr/include/cryptopp -I sdk
# C compiler flags (-g -O2 -Wall)
CCFLAGS = -O0 -g -fstack-protector-all -Wall -D_FILE_OFFSET_BITS=64 #-non-call-exceptions
CPPFLAGS = -std=c++0x $(CCFLAGS) -D_GLIBCXX_DEBUG
# compiler
CC = gcc
CPP = g++
CXX= g++
# library paths
LIBS =
# compile flags
LDFLAGS = -lcryptopp -lfreeimage -lcurl -ldb_cxx -lfuse
megafuse: $(OUT)
all: megafuse
$(OUT): $(OBJ)
$(CPP) $(CPPFLAGS) -o $(OUT) $(OBJ) $(LDFLAGS)
.cpp.o:
$(CPP) $(INCLUDES) $(CPPFLAGS) -c $< -o $@
clean:
rm -f $(OBJ) $(OUT)