adg: fix typo in adg_round docblock
[adg.git] / demo / Makefile.am
blobff48f6b1b90691d304ba68df446830381324df30
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=  cpml-demo.c \
32                                 demo.c \
33                                 demo.h
34 cpml_demo_uninstalled_CFLAGS=   $(CPML_CFLAGS) \
35                                 $(ADG_CFLAGS)
36 cpml_demo_uninstalled_LDADD=    $(CPML_LIBS) \
37                                 $(top_builddir)/src/cpml/libcpml-1.la \
38                                 $(ADG_LIBS) \
39                                 $(top_builddir)/src/adg/libadg-1.la
42 if OS_WINDOWS
43 %.rc.o: adg.manifest
44         $(AM_V_GEN)$(WINDRES) \
45             --define PACKAGE_NAME="$*" \
46             --define PACKAGE_VERSION="$(PACKAGE_VERSION)" \
47             --define PACKAGE_VERSIONS=`echo $(PACKAGE_VERSION) | tr . ,` \
48             $(srcdir)/adg.rc $@
50 adg_demo_uninstalled_LDADD+=    adg-demo.rc.o
51 cpml_demo_uninstalled_LDADD+=   cpml-demo.rc.o
52 endif
56 nodist_pkgdata_DATA=            adg-demo.ui \
57                                 cpml-demo.ui
58 dist_pkgdata_DATA=              adg-16.png \
59                                 adg-32.png \
60                                 adg-48.png \
61                                 adg-64.png \
62                                 adg-128.png
64 iconsdir=                       $(pkgdatadir)/icons
65 dist_icons_DATA=                icons/adg-arc.png \
66                                 icons/adg-browsing.png \
67                                 icons/adg-curve.png \
68                                 icons/adg-intersection.png \
69                                 icons/adg-segment.png
72 EXTRA_DIST=                     cpml-demo.ui.in \
73                                 adg-demo.ui.in \
74                                 adg.rc \
75                                 adg.ico \
76                                 adg.manifest
79 # Possibly remove files created by 'make coverage'
80 mostlyclean-local:
81         -rm -f *.gcno
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)
90 install-exec-hook:
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)
95 uninstall-hook:
96         $(AM_V_at)cd $(DESTDIR)$(bindir) ; \
97         rm -f adg-demo$(EXEEXT) ; \
98         rm -f cpml-demo$(EXEEXT)