work on fs binaries
[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-download \
43   gnunet-publish \
44   gnunet-search \
45   gnunet-unindex 
46 # gnunet-directory 
47 # gnunet-pseudonym 
48
49 #gnunet_directory_SOURCES = 
50 # gnunet-directory.c         
51 #gnunet_directory_LDADD = 
52 #  $(top_builddir)/src/fs/libgnunetfs.la 
53 #  $(top_builddir)/src/util/libgnunetutil.la 
54 #  $(GN_LIBINTL)
55
56 gnunet_download_SOURCES =  \
57  gnunet-download.c         
58 gnunet_download_LDADD =  \
59  $(top_builddir)/src/fs/libgnunetfs.la \
60  $(top_builddir)/src/util/libgnunetutil.la \
61  $(GN_LIBINTL)
62
63 gnunet_publish_SOURCES =  \
64  gnunet-publish.c         
65 gnunet_publish_LDADD =  \
66  $(top_builddir)/src/fs/libgnunetfs.la \
67  $(top_builddir)/src/util/libgnunetutil.la \
68  $(GN_LIBINTL)
69
70 gnunet_search_SOURCES = \
71  gnunet-search.c         
72 gnunet_search_LDADD = \
73   $(top_builddir)/src/fs/libgnunetfs.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(GN_LIBINTL)
76
77 gnunet_unindex_SOURCES = \
78  gnunet-unindex.c         
79 gnunet_unindex_LDADD = \
80   $(top_builddir)/src/fs/libgnunetfs.la \
81   $(top_builddir)/src/util/libgnunetutil.la \
82   $(GN_LIBINTL)
83
84
85
86
87 check_PROGRAMS = \
88  test_fs_collection \
89  test_fs_directory \
90  test_fs_getopt \
91  test_fs_uri
92
93 TESTS = $(check_PROGRAMS)
94
95 test_fs_collection_SOURCES = \
96  test_fs_collection.c
97 test_fs_collection_LDADD = \
98   $(top_builddir)/src/fs/libgnunetfs.la  \
99   $(top_builddir)/src/util/libgnunetutil.la  
100
101 test_fs_directory_SOURCES = \
102  test_fs_directory.c
103 test_fs_directory_LDADD = \
104   $(top_builddir)/src/fs/libgnunetfs.la  \
105   $(top_builddir)/src/util/libgnunetutil.la  
106
107 test_fs_getopt_SOURCES = \
108  test_fs_getopt.c
109 test_fs_getopt_LDADD = \
110   $(top_builddir)/src/fs/libgnunetfs.la  \
111   $(top_builddir)/src/util/libgnunetutil.la  
112
113 test_fs_uri_SOURCES = \
114  test_fs_uri.c
115 test_fs_uri_LDADD = \
116   $(top_builddir)/src/fs/libgnunetfs.la  \
117   $(top_builddir)/src/util/libgnunetutil.la  
118
119 EXTRA_DIST = \
120   test_fs_collection_data.conf \
121   test_fs_uri_data.conf