diff options
Diffstat (limited to 'example/Makefile.am')
-rw-r--r-- | example/Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/example/Makefile.am b/example/Makefile.am index a30c12e..fc520f7 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -1,12 +1,21 @@ if EXAMPLES -noinst_PROGRAMS = decode_resize_encode +noinst_PROGRAMS = simple +simple_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/../src +simple_LDADD = ../src/libtuberia.a +simple_LDFLAGS = -lpthread +simple_SOURCES = simple.c + +if HAS_FFMPEG +noinst_PROGRAMS += decode_resize_encode decode_resize_encode_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/../src decode_resize_encode_LDADD = ../src/libtuberia.a decode_resize_encode_LDFLAGS = -lpthread -lavcodec -lavformat -lavutil -lswscale decode_resize_encode_SOURCES = decode_resize_encode.c endif +endif + exampledir = $(docdir)/example -example_DATA = decode_resize_encode.c +example_DATA = simple.c decode_resize_encode.c |