Makefile.am 3.16 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4

3
AM_CXXFLAGS = \
4
	$(libjsoncpp_CFLAGS) \
Paweł Wegner's avatar
Paweł Wegner committed
5
	$(libtinyxml2_CFLAGS)
6

7 8
AM_LDFLAGS = \
	-no-undefined \
9 10
	$(SOCKET_LIBS) \
	$(FILESYSTEM_LIBS)
11

12
libcloudstorage_ladir = $(includedir)/cloudstorage
13 14
lib_LTLIBRARIES = libcloudstorage.la

Paweł Wegner's avatar
Paweł Wegner committed
15
libcloudstorage_la_SOURCES = \
Paweł Wegner's avatar
Paweł Wegner committed
16 17 18
	Utility/CloudStorage.cpp \
	Utility/Auth.cpp \
	Utility/Item.cpp \
19
	Utility/Utility.cpp \
20 21 22
	Utility/CryptoPP.cpp \
	Utility/CurlHttp.cpp \
	Utility/MicroHttpdServer.cpp \
23
	Utility/ThreadPool.cpp \
24 25 26 27
	CloudProvider/CloudProvider.cpp \
	CloudProvider/GoogleDrive.cpp \
	CloudProvider/OneDrive.cpp \
	CloudProvider/Dropbox.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
28
	CloudProvider/AmazonS3.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
29
	CloudProvider/Box.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
30
	CloudProvider/YouTube.cpp \
31
	CloudProvider/YandexDisk.cpp \
32
	CloudProvider/WebDav.cpp \
33
	CloudProvider/PCloud.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
34
	CloudProvider/HubiC.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
35
	CloudProvider/GooglePhotos.cpp \
36
	CloudProvider/MegaNz.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
37
	CloudProvider/LocalDrive.cpp \
38 39 40 41 42 43
	Request/Request.cpp \
	Request/HttpCallback.cpp \
	Request/AuthorizeRequest.cpp \
	Request/DownloadFileRequest.cpp \
	Request/GetItemRequest.cpp \
	Request/ListDirectoryRequest.cpp \
44
	Request/ListDirectoryPageRequest.cpp \
45
	Request/UploadFileRequest.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
46
	Request/GetItemDataRequest.cpp \
47
	Request/DeleteItemRequest.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
48
	Request/CreateDirectoryRequest.cpp \
49
	Request/MoveItemRequest.cpp \
50
	Request/RenameItemRequest.cpp \
51
	Request/ExchangeCodeRequest.cpp \
Paweł Wegner's avatar
Paweł Wegner committed
52 53
	Request/GetItemUrlRequest.cpp \
	Request/RecursiveRequest.cpp
54

Paweł Wegner's avatar
Paweł Wegner committed
55
noinst_HEADERS = \
Paweł Wegner's avatar
Paweł Wegner committed
56
	IAuth.h \
Paweł Wegner's avatar
Paweł Wegner committed
57 58 59 60
	Utility/CloudStorage.h \
	Utility/Auth.h \
	Utility/Item.h \
	Utility/Utility.h \
61 62 63
	Utility/CryptoPP.h \
	Utility/CurlHttp.h \
	Utility/MicroHttpdServer.h \
64
	Utility/ThreadPool.h \
65 66 67 68
	CloudProvider/CloudProvider.h \
	CloudProvider/GoogleDrive.h \
	CloudProvider/OneDrive.h \
	CloudProvider/Dropbox.h \
69
	CloudProvider/Box.h \
Paweł Wegner's avatar
Paweł Wegner committed
70
	CloudProvider/AmazonS3.h \
71 72
	CloudProvider/YouTube.h \
	CloudProvider/YandexDisk.h \
73
	CloudProvider/WebDav.h \
74
	CloudProvider/PCloud.h \
Paweł Wegner's avatar
Paweł Wegner committed
75
	CloudProvider/HubiC.h \
Paweł Wegner's avatar
Paweł Wegner committed
76
	CloudProvider/GooglePhotos.h \
77
	CloudProvider/MegaNz.h \
Paweł Wegner's avatar
Paweł Wegner committed
78
	CloudProvider/LocalDrive.h \
79
	Request/HttpCallback.h \
Paweł Wegner's avatar
Paweł Wegner committed
80
	Request/AuthorizeRequest.h \
81 82 83
	Request/Request.h \
	Request/DownloadFileRequest.h \
	Request/GetItemRequest.h \
Paweł Wegner's avatar
Paweł Wegner committed
84
	Request/GetItemDataRequest.h \
85
	Request/ListDirectoryRequest.h \
86
	Request/ListDirectoryPageRequest.h \
Paweł Wegner's avatar
Paweł Wegner committed
87
	Request/UploadFileRequest.h \
88
	Request/DeleteItemRequest.h \
Paweł Wegner's avatar
Paweł Wegner committed
89
	Request/CreateDirectoryRequest.h \
90
	Request/MoveItemRequest.h \
91
	Request/RenameItemRequest.h \
92
	Request/ExchangeCodeRequest.h \
Paweł Wegner's avatar
Paweł Wegner committed
93 94
	Request/GetItemUrlRequest.h \
	Request/RecursiveRequest.h
Paweł Wegner's avatar
Paweł Wegner committed
95

96
libcloudstorage_la_HEADERS = \
Paweł Wegner's avatar
Paweł Wegner committed
97 98 99
	IItem.h \
	ICloudProvider.h \
	ICloudStorage.h \
Paweł Wegner's avatar
Paweł Wegner committed
100
	IRequest.h \
101
	ICrypto.h \
Paweł Wegner's avatar
Paweł Wegner committed
102
	IHttp.h \
Paweł Wegner's avatar
Paweł Wegner committed
103
	IHttpServer.h \
104
	IThreadPool.h
Paweł Wegner's avatar
Paweł Wegner committed
105

106 107
libcloudstorage_la_LIBADD = \
	$(libjsoncpp_LIBS) \
Paweł Wegner's avatar
Paweł Wegner committed
108
	$(libtinyxml2_LIBS)
Paweł Wegner's avatar
Paweł Wegner committed
109 110

if WITH_MEGA
111
AM_CXXFLAGS += $(libmega_CFLAGS)
Paweł Wegner's avatar
Paweł Wegner committed
112 113
libcloudstorage_la_LIBADD += $(libmega_LIBS)
endif
Paweł Wegner's avatar
Paweł Wegner committed
114

Paweł Wegner's avatar
Paweł Wegner committed
115 116 117 118 119
if WITH_CRYPTOPP
AM_CXXFLAGS += $(libcryptopp_CFLAGS)
libcloudstorage_la_LIBADD += $(libcryptopp_LIBS)
endif

120 121 122 123 124
if WITH_CURL
AM_CXXFLAGS += $(libcurl_CFLAGS)
libcloudstorage_la_LIBADD += $(libcurl_LIBS)
endif

125 126 127 128 129
if WITH_MICROHTTPD
AM_CXXFLAGS += $(libmicrohttpd_CFLAGS)
libcloudstorage_la_LIBADD += $(libmicrohttpd_LIBS)
endif

Paweł Wegner's avatar
Paweł Wegner committed
130 131
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcloudstorage.pc