2 # Makefile for Magick++ demo programs
4 # Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
6 AUTOMAKE_OPTIONS = 1.8 foreign nostdinc
8 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)/Magick++/lib -I$(top_srcdir)
10 check_PROGRAMS = analyze button demo detrans flip gravity piddle shapes zoom
12 LDADD = ../lib/libMagick++.la
14 analyze_SOURCES = analyze.cpp
15 button_SOURCES = button.cpp
16 demo_SOURCES = demo.cpp
17 detrans_SOURCES = detrans.cpp
18 flip_SOURCES = flip.cpp
19 gravity_SOURCES = gravity.cpp
20 piddle_SOURCES = piddle.cpp
21 shapes_SOURCES = shapes.cpp
22 zoom_SOURCES = zoom.cpp
24 EXTRA_DIST = model.miff smile.miff smile_anim.miff tile.miff
26 CLEANFILES = *_out.* ir.out # SunWS_cache
28 ZOOM_FILTERS = bessel blackman box catrom cubic gaussian hamming hanning hermite \
29 lanczos mitchell point quadratic sample scale sinc triangle
30 ZOOM_GEOMETRY = 600x600
33 SRCDIR='$(shell @WinPathScript@ $(srcdir)/)'
38 MAGICK_ENV = $(SHELL) $(top_builddir)/magick.sh
40 # FIXME: MinGW needs Windows path form of srcdir here (or pass as command argument)
42 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./analyze '$(srcdir)/model.miff'
43 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./button
44 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./demo
45 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./flip
46 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./gravity
47 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./piddle
48 @$(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./shapes
49 for filter in $(ZOOM_FILTERS) ; do \
50 echo "$$filter ..." ; \
51 $(MAGICK_ENV) SRCDIR=$(SRCDIR) $(MEMCHECK) ./zoom -filter $$filter -geometry $(ZOOM_GEOMETRY) '$(srcdir)/model.miff' zoom_$${filter}_out.miff ; \