Previous: , Up: Implementing a block plugin   [Contents] Integration of the plugin with the build system

In order to compile the plugin, the file for the service SERVICE should contain a rule similar to this:

  plugindir = $(libdir)/gnunet

  plugin_LTLIBRARIES = \

  libgnunet_plugin_block_ext_la_SOURCES = \
  libgnunet_plugin_block_ext_la_LIBADD = \
          $(prefix)/lib/ \
          $(prefix)/lib/ \
  libgnunet_plugin_block_ext_la_LDFLAGS = \
  libgnunet_plugin_block_ext_la_DEPENDENCIES = \

Exercise: Write a block plugin that accepts all queries and all replies but prints information about queries and replies when the respective validation hooks are called.