Add Makefile.am for examples

This commit is contained in:
Petri Lehtinen 2014-12-30 08:46:09 +02:00
parent 8d561cd94e
commit fc83f10c85
3 changed files with 20 additions and 0 deletions

View File

@ -114,5 +114,6 @@ AC_CONFIG_FILES([
test/bin/Makefile
test/suites/Makefile
test/suites/api/Makefile
examples/Makefile
])
AC_OUTPUT

9
examples/Makefile.am Normal file
View File

@ -0,0 +1,9 @@
EXTRA_PROGRAMS = simple_parse
simple_parse_SOURCES = simple_parse.c
AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
LDFLAGS = -static # for easier running
LDADD = $(top_builddir)/src/libjansson.la
all: simple_parse

10
examples/README.rst Normal file
View File

@ -0,0 +1,10 @@
Jansson examples
================
This directory contains simple example programs that use Jansson.
You can compile the examples by running the configure script normally
in Jansson's top directory, and then:
cd examples
make