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