aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile.am
diff options
context:
space:
mode:
authorNicolas Dato <nicolas.dato@gmail.com>2025-07-19 22:53:49 -0300
committerNicolas Dato <nicolas.dato@gmail.com>2025-07-19 22:53:49 -0300
commit5c271cdae60c9711fb100a544d2b014a777c3408 (patch)
treea6757ade4f9f00ee7419f4a5d7479eba6a660b88 /example/Makefile.am
parent7b71892626c8bcb034562deef274a5762bb1c014 (diff)
downloadlibtuberia-5c271cdae60c9711fb100a544d2b014a777c3408.tar.gz
adding a simple example
Diffstat (limited to 'example/Makefile.am')
-rw-r--r--example/Makefile.am13
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