working on unindex
[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_unindex.c \
27   fs_uri.c 
28
29 libgnunetfs_la_LIBADD = \
30   $(top_builddir)/src/datastore/libgnunetdatastore.la \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   -lextractor \
33   $(GN_LIBINTL) $(XLIB)
34
35 libgnunetfs_la_LDFLAGS = \
36   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
37   -version-info 0:0:0
38
39
40 bin_PROGRAMS = \
41   gnunet-publish 
42 # gnunet-directory 
43 # gnunet-download 
44 # gnunet-pseudonym 
45 # gnunet-search
46 # gnunet-unindex 
47
48 #gnunet_directory_SOURCES = 
49 # gnunet-directory.c         
50 #gnunet_directory_LDADD = 
51 #  $(top_builddir)/src/fs/libgnunetfs.la 
52 #  $(top_builddir)/src/util/libgnunetutil.la 
53 #  $(GN_LIBINTL)
54
55
56 gnunet_publish_SOURCES =  \
57  gnunet-publish.c         
58 gnunet_publish_LDADD =  \
59  $(top_builddir)/src/fs/libgnunetfs.la \
60  $(top_builddir)/src/util/libgnunetutil.la \
61  $(GN_LIBINTL)
62
63
64 check_PROGRAMS = \
65  test_fs_collection \
66  test_fs_directory \
67  test_fs_getopt \
68  test_fs_uri
69
70 TESTS = $(check_PROGRAMS)
71
72 test_fs_collection_SOURCES = \
73  test_fs_collection.c
74 test_fs_collection_LDADD = \
75   $(top_builddir)/src/fs/libgnunetfs.la  \
76   $(top_builddir)/src/util/libgnunetutil.la  
77
78 test_fs_directory_SOURCES = \
79  test_fs_directory.c
80 test_fs_directory_LDADD = \
81   $(top_builddir)/src/fs/libgnunetfs.la  \
82   $(top_builddir)/src/util/libgnunetutil.la  
83
84 test_fs_getopt_SOURCES = \
85  test_fs_getopt.c
86 test_fs_getopt_LDADD = \
87   $(top_builddir)/src/fs/libgnunetfs.la  \
88   $(top_builddir)/src/util/libgnunetutil.la  
89
90 test_fs_uri_SOURCES = \
91  test_fs_uri.c
92 test_fs_uri_LDADD = \
93   $(top_builddir)/src/fs/libgnunetfs.la  \
94   $(top_builddir)/src/util/libgnunetutil.la  
95
96 EXTRA_DIST = \
97   test_fs_collection_data.conf \
98   test_fs_uri_data.conf