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