refactoring publishing code
[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-publish 
43 # gnunet-directory 
44 # gnunet-download 
45 # gnunet-pseudonym 
46 # gnunet-search
47 # gnunet-unindex 
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
57 gnunet_publish_SOURCES =  \
58  gnunet-publish.c         
59 gnunet_publish_LDADD =  \
60  $(top_builddir)/src/fs/libgnunetfs.la \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(GN_LIBINTL)
63
64
65 check_PROGRAMS = \
66  test_fs_collection \
67  test_fs_directory \
68  test_fs_getopt \
69  test_fs_uri
70
71 TESTS = $(check_PROGRAMS)
72
73 test_fs_collection_SOURCES = \
74  test_fs_collection.c
75 test_fs_collection_LDADD = \
76   $(top_builddir)/src/fs/libgnunetfs.la  \
77   $(top_builddir)/src/util/libgnunetutil.la  
78
79 test_fs_directory_SOURCES = \
80  test_fs_directory.c
81 test_fs_directory_LDADD = \
82   $(top_builddir)/src/fs/libgnunetfs.la  \
83   $(top_builddir)/src/util/libgnunetutil.la  
84
85 test_fs_getopt_SOURCES = \
86  test_fs_getopt.c
87 test_fs_getopt_LDADD = \
88   $(top_builddir)/src/fs/libgnunetfs.la  \
89   $(top_builddir)/src/util/libgnunetutil.la  
90
91 test_fs_uri_SOURCES = \
92  test_fs_uri.c
93 test_fs_uri_LDADD = \
94   $(top_builddir)/src/fs/libgnunetfs.la  \
95   $(top_builddir)/src/util/libgnunetutil.la  
96
97 EXTRA_DIST = \
98   test_fs_collection_data.conf \
99   test_fs_uri_data.conf