summaryrefslogtreecommitdiffstats
path: root/examples/Makefile.am
blob: 9d6331bbc6f8803b91fbf1ecf262d3884dec8492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
bin_PROGRAMS= example1 example2
example1_SOURCES= example1.c
example1_LDADD= ../src/librcc.la
example2_SOURCES= example2.c
example2_LDADD= ../src/librcc.la

if HAVE_GTK
bin_PROGRAMS+= rcc-gtk-config
rcc_gtk_config_SOURCES = rcc-gtk-config.c
rcc_gtk_config_LDADD=../ui/librccgtk.la @GTK1_LIBS@
rcc_gtk_config_CPPFLAGS = @GTK1_INCLUDES@ -I../src -I../ui
endif

if HAVE_GTK2
bin_PROGRAMS+= rcc-gtk2-config
rcc_gtk2_config_SOURCES = rcc-gtk-config.c
rcc_gtk2_config_LDADD=../ui/librccgtk2.la @GTK2_LIBS@
rcc_gtk2_config_CPPFLAGS = @GTK2_CFLAGS@ -I../src -I../ui
endif

if HAVE_GTK3
bin_PROGRAMS+= rcc-gtk3-config
rcc_gtk3_config_SOURCES = rcc-gtk-config.c
rcc_gtk3_config_LDADD=../ui/librccgtk3.la @GTK3_LIBS@
rcc_gtk3_config_CPPFLAGS = @GTK3_CFLAGS@ -I../src -I../ui
endif


EXTRA_DIST= input-russian.txt rcc.xml rcc-example.xml mpg123-rcc.patch

test: example2
	cat input-russian.txt | ./example2

test-russian: example2
	cat input-russian.txt | ./example2 ru

AM_CPPFLAGS = -I../src -I../ui