forked from wwoods/gridfs-fuse
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
33 lines (21 loc) · 805 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
CXXFLAGS += -g -std=c++11 -D_FILE_OFFSET_BITS=64 -I. -Wall
MACHINE = $(shell uname -s)
ifeq ($(MACHINE),Darwin)
LDFLAGS +=-L. -lmongoclient -lfuse_ino64 -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt
else
LDFLAGS +=-L. -lmongoclient -lfuse -lboost_thread -lboost_filesystem -lboost_system -lpthread -lssl -lcrypto
endif
OBJS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
mount_gridfs : $(OBJS)
$(CXX) $^ $(LDFLAGS) -o $@
debian : mount_gridfs
install: mount_gridfs
install -t /usr/local/bin mount_gridfs
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
main.o: main.cpp operations.h options.h utils.h
operations.o : operations.cpp operations.h options.h utils.h local_gridfile.h
options.o: options.cpp options.h
local_gridfile.o: local_gridfile.cpp local_gridfile.h
clean:
rm -f $(OBJS)