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
16 bin_PROGRAMS= adg-demo-uninstalled \
19 adg_demo_uninstalled_SOURCES= adg-demo.c \
22 adg_demo_uninstalled_CFLAGS= $(CPML_CFLAGS) \
24 adg_demo_uninstalled_LDADD= $(CPML_LIBS) \
25 $(top_builddir)/src/cpml/libcpml-1.la \
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 \
33 cpml_demo_uninstalled_CFLAGS= $(CPML_CFLAGS) \
35 cpml_demo_uninstalled_LDADD= $(CPML_LIBS) \
36 $(top_builddir)/src/cpml/libcpml-1.la \
38 $(top_builddir)/src/adg/libadg-1.la
41 cpml_demo_uninstalled_SOURCES+= cpml-demo.c
45 cpml_demo_uninstalled_SOURCES+= cpml-demo-gtk2.c
48 nodist_pkgdata_DATA= adg-demo.ui \
50 dist_pkgdata_DATA= adg-16.png \
57 EXTRA_DIST= cpml-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)
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)
73 $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
74 rm -f adg-demo$(EXEEXT) ; \
75 rm -f cpml-demo$(EXEEXT)