forked from mikejs/gridfs-fuse
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
26 lines (17 loc) · 831 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
CC=g++
CCOPTS=-g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include
LDOPTS=-L/usr/local/lib -L. -lmongoclient -lfuse_ino64 -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt
debian : LDOPTS=-L/usr/local/lib -L. -lmongoclient -lfuse -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt -ldl
mount_gridfs : operations.o local_gridfile.o main.o options.o
$(CC) -o mount_gridfs main.o operations.o options.o local_gridfile.o $(LDOPTS)
debian : mount_gridfs
operations.o : operations.cpp operations.h
$(CC) $(CCOPTS) -c operations.cpp
local_gridfile.o : local_gridfile.cpp local_gridfile.h
$(CC) $(CCOPTS) -c local_gridfile.cpp
main.o : main.cpp
$(CC) $(CCOPTS) -c main.cpp
options.o : options.cpp options.h
$(CC) $(CCOPTS) -c options.cpp
clean:
rm -f mount_gridfs main.o operations.o options.o local_gridfile.o