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