doc: update copyright line for 2021
[adg.git] / demo / Makefile.am
blob14977c6aaaeef5767d8da9cab54696e3370a54e6
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 \
17                                 cpml-demo
19 adg_demo_SOURCES=               adg-demo.c \
20                                 demo.c \
21                                 demo.h
22 adg_demo_CFLAGS=                $(CPML_CFLAGS) \
23                                 $(ADG_CFLAGS)
24 adg_demo_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_SOURCES=              cpml-demo.c \
32                                 demo.c \
33                                 demo.h
34 cpml_demo_CFLAGS=               $(CPML_CFLAGS) \
35                                 $(ADG_CFLAGS)
36 cpml_demo_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_LDADD+=                adg-demo.rc.o
51 cpml_demo_LDADD+=               cpml-demo.rc.o
52 endif
56 nodist_pkgdata_DATA=            adg-demo.ui
57 dist_pkgdata_DATA=              cpml-demo.ui
59 iconsdir=                       $(pkgdatadir)/icons
60 dist_icons_DATA=                icons/adg-16.png \
61                                 icons/adg-32.png \
62                                 icons/adg-48.png \
63                                 icons/adg-64.png \
64                                 icons/adg-128.png \
65                                 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=                     adg-demo.ui.in \
73                                 adg.rc \
74                                 adg.ico \
75                                 adg.manifest
78 # Possibly remove files created by 'make coverage'
79 mostlyclean-local:
80         -rm -f *.gcno