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= cpml-demo.c \
34 cpml_demo_uninstalled_CFLAGS= $(CPML_CFLAGS) \
36 cpml_demo_uninstalled_LDADD= $(CPML_LIBS) \
37 $(top_builddir)/src/cpml/libcpml-1.la \
39 $(top_builddir)/src/adg/libadg-1.la
44 $(AM_V_GEN)$(WINDRES) \
45 --define PACKAGE_NAME="$*" \
46 --define PACKAGE_VERSION="$(PACKAGE_VERSION)" \
47 --define PACKAGE_VERSIONS=`echo $(PACKAGE_VERSION) | tr . ,` \
50 adg_demo_uninstalled_LDADD+= adg-demo.rc.o
51 cpml_demo_uninstalled_LDADD+= cpml-demo.rc.o
56 nodist_pkgdata_DATA= adg-demo.ui \
58 dist_pkgdata_DATA= adg-16.png \
64 iconsdir= $(pkgdatadir)/icons
65 dist_icons_DATA= icons/adg-arc.png \
66 icons/adg-browsing.png \
68 icons/adg-intersection.png \
72 EXTRA_DIST= cpml-demo.ui.in \
79 # Possibly remove files created by 'make coverage'
84 # adg-demo-uninstalled and cpml-demo-uninstalled are renamed after installation:
85 # the uninstalled version should not be checked for --help and --version.
86 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT= \
87 adg-demo-uninstalled$(EXEEXT) \
88 cpml-demo-uninstalled$(EXEEXT)
91 $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
92 mv -f adg-demo-uninstalled$(EXEEXT) adg-demo$(EXEEXT) ; \
93 mv -f cpml-demo-uninstalled$(EXEEXT) cpml-demo$(EXEEXT)
96 $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
97 rm -f adg-demo$(EXEEXT) ; \
98 rm -f cpml-demo$(EXEEXT)