diff options
Diffstat (limited to 'examples/oscilator/Makefile.am')
| -rw-r--r-- | examples/oscilator/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/oscilator/Makefile.am b/examples/oscilator/Makefile.am new file mode 100644 index 0000000..e77c704 --- /dev/null +++ b/examples/oscilator/Makefile.am @@ -0,0 +1,23 @@ + +AM_CFLAGS = -Wall -Wextra -Werror -std=gnu23 +AM_CPPFLAGS = -I$(top_srcdir)/src + +noinst_PROGRAMS = main +noinst_DATA = M.svg + +main_SOURCES = main.c +main_LDADD = -lm $(top_builddir)/src/.libs/libsvgc.la + +EXTRA_DIST = view.html +CLEANFILES = M.svg + +M.svg: main + @if test "$(srcdir)" != "."; then \ + cp "$(srcdir)/view.html" view.html; \ + fi + ./main + +clean-local: + @if test "$(srcdir)" != "."; then \ + rm -f view.html; \ + fi |
