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