doc: added missing adg-rdim.c to POTFILES.in
[adg.git] / demo / Makefile.am
blobf89b44e66540bae6fa6bbe586de0b46dbccabce7
1 include $(top_srcdir)/build/Makefile.am.common
3 AM_CPPFLAGS=                    -I$(top_srcdir)/src \
4                                 -I$(top_builddir)/src \
5                                 -DPKGDATADIR='"$(pkgdatadir)"' \
6                                 -DSRCDIR='"$(abs_srcdir)"' \
7                                 -DBUILDDIR='"$(abs_builddir)"'
9 # On Windows, do not spawn the command prompt window (shown by default)
10 # by setting a flag in the PE header of the executables
11 if OS_WINDOWS
12 AM_CFLAGS=                      -mwindows
13 endif
16 bin_PROGRAMS=                   adg-demo-uninstalled \
17                                 cpml-demo-uninstalled
19 adg_demo_uninstalled_SOURCES=   adg-demo.c \
20                                 demo.c \
21                                 demo.h
22 adg_demo_uninstalled_CFLAGS=    $(CPML_CFLAGS) \
23                                 $(ADG_CFLAGS)
24 adg_demo_uninstalled_LDADD=     $(CPML_LIBS) \
25                                 $(top_builddir)/src/cpml/libcpml-1.la \
26                                 $(ADG_LIBS) \
27                                 $(top_builddir)/src/adg/libadg-1.la
29 # The CPML demo program uses the ADG library only marginally for
30 # looking up the ui file (adg_find_file()) and for i18n.
31 cpml_demo_uninstalled_SOURCES=  demo.c \
32                                 demo.h
33 cpml_demo_uninstalled_CFLAGS=   $(CPML_CFLAGS) \
34                                 $(ADG_CFLAGS)
35 cpml_demo_uninstalled_LDADD=    $(CPML_LIBS) \
36                                 $(top_builddir)/src/cpml/libcpml-1.la \
37                                 $(ADG_LIBS) \
38                                 $(top_builddir)/src/adg/libadg-1.la
40 if HAVE_GTK3
41 cpml_demo_uninstalled_SOURCES+= cpml-demo.c
42 endif
44 if HAVE_GTK2
45 cpml_demo_uninstalled_SOURCES+= cpml-demo-gtk2.c
46 endif
48 nodist_pkgdata_DATA=            adg-demo.ui \
49                                 cpml-demo.ui
50 dist_pkgdata_DATA=              adg-16.png \
51                                 adg-32.png \
52                                 adg-48.png \
53                                 adg-64.png \
54                                 adg-128.png
57 EXTRA_DIST=                     cpml-demo.ui.in \
58                                 adg-demo.ui.in
61 # adg-demo-uninstalled and cpml-demo-uninstalled are renamed after installation:
62 # the uninstalled version should not be checked for --help and --version.
63 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT= \
64                                 adg-demo-uninstalled$(EXEEXT) \
65                                 cpml-demo-uninstalled$(EXEEXT)
67 install-exec-hook:
68         $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
69         mv -f adg-demo-uninstalled$(EXEEXT) adg-demo$(EXEEXT) ; \
70         mv -f cpml-demo-uninstalled$(EXEEXT) cpml-demo$(EXEEXT)
72 uninstall-hook:
73         $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
74         rm -f adg-demo$(EXEEXT) ; \
75         rm -f cpml-demo$(EXEEXT)