[ADG] s/adg-gtk-1/adg-1/
[adg.git] / demo / Makefile.am
blob18bc66f835e42adea7904b3892bcc835795e1be1
1 include $(top_srcdir)/build/Makefile.am.common
3 AM_CPPFLAGS=                    -I$(top_srcdir)/src \
4                                 -I$(top_builddir)/src
5 AM_CFLAGS=                      $(CAIRO_CFLAGS) \
6                                 $(GOBJECT2_CFLAGS)
7 AM_LDFLAGS=                     $(CAIRO_LIBS) \
8                                 $(GOBJECT2_LIBS)
9 LDADD=                          $(top_builddir)/src/cpml/libcpml-1.la \
10                                 $(top_builddir)/src/adg/libadg-1.la
12 if OS_WINDOWS
14 ## On windows, ADG_DATADIR is handled as a path relative
15 ## to the binary executable
16 adgdatadir=                     $(bindir)
17 AM_CPPFLAGS+=                   -DADG_DATADIR='""'
19 else # ! OS_WINDOWS
21 adgdatadir=                     $(pkgdatadir)
22 AM_CPPFLAGS+=                   -DADG_DATADIR='"$(adgdatadir)"'
24 endif
27 if HAVE_GTK2
29 AM_CFLAGS+=                     $(GTK2_CFLAGS)
30 AM_LDFLAGS+=                    $(GTK2_LIBS)
32 bin_PROGRAMS=                   adg-demo \
33                                 cpml-demo
34 adg_demo_SOURCES=               adg-demo.c \
35                                 demo.c \
36                                 demo.h
37 adg_demo_LDADD=                 $(LDADD) \
38                                 $(top_builddir)/src/adg/libadg-1.la
39 cpml_demo_SOURCES=              cpml-demo.c \
40                                 demo.c \
41                                 demo.h
42 nodist_adgdata_DATA=            adg-demo.ui \
43                                 cpml-demo.ui
44 dist_adgdata_DATA=              adg-64.png
45 endif
47 EXTRA_DIST=                     cpml-demo.ui.in \
48                                 adg-demo.ui.in