summaryrefslogtreecommitdiff
path: root/examples/oscilator/Makefile.am
blob: e77c704f67af42e88f680b262288f67d396660bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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