-fixed _clear() in peers "helper"
[oweals/gnunet.git] / src / block / Makefile.am
index b9585c260e36ee7391aa8eaea0d56584f2fbae70..c54a4c246fbae678e0e16d724182e8b32562c794 100644 (file)
@@ -1,4 +1,7 @@
-INCLUDES = -I$(top_srcdir)/src/include
+# This Makefile.am is in the public domain
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
+
+plugindir = $(libdir)/gnunet
 
 if MINGW
   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
@@ -10,19 +13,39 @@ endif
 
 lib_LTLIBRARIES = libgnunetblock.la
 
-libgnunetblock_la_SOURCES = \
-  block.c 
-libgnunetblock_la_LIBADD = \
- $(top_builddir)/src/util/libgnunetutil.la  
-
-check_PROGRAMS = \
- test_block
+plugin_LTLIBRARIES = \
+  libgnunet_plugin_block_test.la
+
+# Real plugins should of course go into
+# plugin_LTLIBRARIES
+noinst_LTLIBRARIES = \
+  libgnunet_plugin_block_template.la
+
+libgnunet_plugin_block_template_la_SOURCES = \
+  plugin_block_template.c
+libgnunet_plugin_block_template_la_LIBADD = \
+  libgnunetblock.la \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(LTLIBINTL)
+libgnunet_plugin_block_template_la_LDFLAGS = \
+ $(GN_PLUGIN_LDFLAGS)
+
+libgnunet_plugin_block_test_la_SOURCES = \
+  plugin_block_test.c
+libgnunet_plugin_block_test_la_LIBADD = \
+  libgnunetblock.la \
+  $(top_builddir)/src/util/libgnunetutil.la  \
+  $(LTLIBINTL)
+libgnunet_plugin_block_test_la_LDFLAGS = \
+ $(GN_PLUGIN_LDFLAGS)
 
-#TESTS = $(check_PROGRAMS)
-
-test_block_SOURCES = \
- test_block.c
-test_block_LDADD = \
- $(top_builddir)/src/block/libgnunetblock.la \
- $(top_builddir)/src/util/libgnunetutil.la  
 
+libgnunetblock_la_SOURCES = \
+  block.c
+libgnunetblock_la_LIBADD = \
+ $(top_builddir)/src/util/libgnunetutil.la
+libgnunetblock_la_DEPENDENCIES = \
+ $(top_builddir)/src/util/libgnunetutil.la
+libgnunetblock_la_LDFLAGS = \
+  $(GN_LIB_LDFLAGS) \
+  -version-info 0:0:0