-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (53 loc) · 1.15 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
PRODUCT=gstfs-ng
VERSION=1.0
PACKAGE=$(PRODUCT)-$(VERSION)
INCS=\
Cwd.h\
Exception.h\
FileIndex.h\
FileReader.h\
FindFile.h\
GstFs.h\
ImageCache.h\
Image.h\
ImageReader.h\
ReaderFactory.h\
Reader.h\
Synchronizable.h\
TranscodeFileReader.h\
Transcode.h\
Utility.h\
readlink.h\
SRCS=\
Cwd.cpp\
FileIndex.cpp\
FileReader.cpp\
GstFs.cpp\
ImageCache.cpp\
ImageReader.cpp\
main.cpp\
Reader.cpp\
ReaderFactory.cpp\
Transcode.cpp\
TranscodeFileReader.cpp\
Utility.cpp\
readlink.cpp\
OBJS=$(SRCS:.cpp=.o)
FILES=$(INCS) $(SRCS) Makefile COPYING gstfs-ng.8 .project .cproject ChangeLog gstfs-ng.monitor
PKGS=fuse glib-2.0 gstreamer-1.0
LIBS=-lboost_thread -lpthread $$(pkg-config --libs $(PKGS))
CXXFLAGS+=-g -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 $$(pkg-config --cflags $(PKGS)) --std=c++11 -Wno-deprecated
all: $(PRODUCT)
$(PRODUCT): $(OBJS)
$(CXX) -o $@ $(OBJS) $(LIBS)
clean:
$(RM) $(PRODUCT) $(OBJS) $(PACKAGE).tgz
$(RM) -r $(PACKAGE)
$(PACKAGE).tgz: $(FILES)
mkdir $(PACKAGE)
cp $(FILES) $(PACKAGE)
tar czf $(PACKAGE).tgz $(PACKAGE)
$(RM) -r $(PACKAGE)
build: $(PACKAGE).tgz
tar xzf $(PACKAGE).tgz
cd $(PACKAGE); $(MAKE)