types
[oweals/gnunet.git] / src / fs / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12
13 lib_LTLIBRARIES = libgnunetfs.la
14
15 libgnunetfs_la_SOURCES = \
16   fs.c \
17   fs_collection.c \
18   fs_directory.c \
19   fs_download.c \
20   fs_file_information.c \
21   fs_getopt.c \
22   fs_list_indexed.c \
23   fs_publish.c \
24   fs_namespace.c \
25   fs_search.c \
26   fs_tree.c fs_tree.h \
27   fs_unindex.c \
28   fs_uri.c 
29
30 libgnunetfs_la_LIBADD = \
31   $(top_builddir)/src/datastore/libgnunetdatastore.la \
32   $(top_builddir)/src/util/libgnunetutil.la \
33   -lextractor \
34   $(GN_LIBINTL) $(XLIB)
35
36 libgnunetfs_la_LDFLAGS = \
37   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
38   -version-info 0:0:0
39
40
41 bin_PROGRAMS = \
42   gnunet-directory \
43   gnunet-download \
44   gnunet-publish \
45   gnunet-pseudonym \
46   gnunet-search \
47   gnunet-service-fs \
48   gnunet-unindex 
49
50 gnunet_directory_SOURCES = \
51  gnunet-directory.c
52 gnunet_directory_LDADD = \
53   $(top_builddir)/src/fs/libgnunetfs.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(GN_LIBINTL)
56
57 gnunet_download_SOURCES =  \
58  gnunet-download.c         
59 gnunet_download_LDADD =  \
60  $(top_builddir)/src/fs/libgnunetfs.la \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(GN_LIBINTL)
63
64 gnunet_publish_SOURCES =  \
65  gnunet-publish.c         
66 gnunet_publish_LDADD =  \
67  $(top_builddir)/src/fs/libgnunetfs.la \
68  $(top_builddir)/src/util/libgnunetutil.la \
69  $(GN_LIBINTL)
70
71 gnunet_pseudonym_SOURCES = \
72  gnunet-pseudonym.c
73 gnunet_pseudonym_LDADD = \
74   $(top_builddir)/src/fs/libgnunetfs.la \
75   $(top_builddir)/src/util/libgnunetutil.la \
76   $(GN_LIBINTL)
77
78 gnunet_search_SOURCES = \
79  gnunet-search.c         
80 gnunet_search_LDADD = \
81   $(top_builddir)/src/fs/libgnunetfs.la \
82   $(top_builddir)/src/util/libgnunetutil.la \
83   $(GN_LIBINTL)
84
85 gnunet_service_fs_SOURCES =  \
86  gnunet-service-fs.c         
87 gnunet_service_fs_LDADD =  \
88  $(top_builddir)/src/fs/libgnunetfs.la \
89  $(top_builddir)/src/datastore/libgnunetdatastore.la \
90  $(top_builddir)/src/core/libgnunetcore.la \
91  $(top_builddir)/src/util/libgnunetutil.la \
92  $(GN_LIBINTL)
93
94 gnunet_unindex_SOURCES = \
95  gnunet-unindex.c         
96 gnunet_unindex_LDADD = \
97   $(top_builddir)/src/fs/libgnunetfs.la \
98   $(top_builddir)/src/util/libgnunetutil.la \
99   $(GN_LIBINTL)
100
101
102
103
104 check_PROGRAMS = \
105  test_fs_collection \
106  test_fs_directory \
107  test_fs_getopt \
108  test_fs_uri
109
110 TESTS = test_fs_directory test_fs_uri
111
112 # $(check_PROGRAMS)
113
114 test_fs_collection_SOURCES = \
115  test_fs_collection.c
116 test_fs_collection_LDADD = \
117   $(top_builddir)/src/fs/libgnunetfs.la  \
118   $(top_builddir)/src/util/libgnunetutil.la  
119
120 test_fs_directory_SOURCES = \
121  test_fs_directory.c
122 test_fs_directory_LDADD = \
123   $(top_builddir)/src/fs/libgnunetfs.la  \
124   $(top_builddir)/src/util/libgnunetutil.la  
125
126 test_fs_getopt_SOURCES = \
127  test_fs_getopt.c
128 test_fs_getopt_LDADD = \
129   $(top_builddir)/src/fs/libgnunetfs.la  \
130   $(top_builddir)/src/util/libgnunetutil.la  
131
132 test_fs_uri_SOURCES = \
133  test_fs_uri.c
134 test_fs_uri_LDADD = \
135   $(top_builddir)/src/fs/libgnunetfs.la  \
136   $(top_builddir)/src/util/libgnunetutil.la  
137
138 EXTRA_DIST = \
139   test_fs_collection_data.conf \
140   test_fs_uri_data.conf