[build] do not use LDFLAGS and CFLAGS with ghc.
[hkl.git] / Documentation / figures / Makefile.am
blob16e8bc6e9322956695d008eb08b1db20215446f9
1 .asy.png:
2         -LIBGL_ALWAYS_SOFTWARE=true @ASY@ -config "" -d -render=4 -f png -o $(@:.png=) $<
4 .asy.pdf:
5         --LIBGL_ALWAYS_SOFTWARE=true @ASY@ -config "" -d -render=0 -f pdf -noprc -o $@ $<
7 .gnuplot.svg:
8         -@GNUPLOT@ $<
10 AM_CPPFLAGS = -Wextra -D_DEFAULT_SOURCE \
11         -I$(top_srcdir) \
12         -I$(top_srcdir)/hkl \
13         -I$(top_srcdir)/third-party \
14         -ftrack-macro-expansion=0 \
15         $(GLIB_CFLAGS) \
16         $(GOBJECT_CFLAGS) \
17         $(GSL_CFLAGS)
19 # wee need access to the private part until the trajectory is done.
20 AM_LDFLAGS = -Wl,--whole-archive,$(top_builddir)/hkl/.libs/libhkl.a,--no-whole-archive
22 LDADD = \
23         $(top_builddir)/hkl/libhkl.la \
24         $(top_builddir)/hkl/api2/libhkl2.la \
25         $(GLIB_LIBS) \
26         $(GOBJECT_LIBS) \
27         $(GSL_LIBS)
29 noinst_PROGRAMS = sirius
31 SIRIUSFILES=s1-11.dat s2-11.dat s1-101.dat s2-101.dat m1-11.dat m2-11.dat m1-101.dat m2-101.dat m3-100.dat traj_n.dat
32 SVGFILES=sirius-s.svg sirius-m.svg sirius-m-zoom.svg traj_n.svg sirius-m3-100.svg
34 $(SVGFILES): $(SIRIUSFILES)
36 sirius-stamp: sirius
37         @rm -f sirius-temp
38         @touch sirius-temp
39         cd $(builddir) && ./sirius
40         @mv -f sirius-temp $@
42 $(SIRIUSFILES): sirius-stamp
43         ## Recover from the removal of $@
44         @if test -f $@; then :; else \
45                 trap 'rm -rf sirius.lock sirius.stamp' 1 2 13 15; \
46                 ## mkdir is a portable test-and-set
47                 if mkdir sirius.lock 2>/dev/null; then \
48                 ## This code is being executed by the first process.
49                         rm -f sirius.stamp; \
50                         $(MAKE) $(AM_MAKEFLAGS) sirius.stamp; \
51                 else \
52                 ## This code is being executed by the follower processes.
53                 ## Wait until the first process is done.
54                         while test -d sirius.lock; do sleep 1; done; \
55                 ## Succeed if and only if the first process succeeded.
56                         test -f sirius.stamp; exit $$?; \
57                 fi; \
58         fi
60 dist_noinst_DATA = \
61         3S+1D.png \
62         B_b3_y.png \
63         B_a.png \
64         B_b.png \
65         crystal.png \
66         4S+2D.png \
67         4S+2D_reciprocal.png \
68         4S+2D_reciprocal2.png \
69         4S+2D_reciprocal3.png \
70         4S+2D_reciprocal4.png \
71         k4cv.png \
72         k6c.png \
73         med2_3_slits.png \
74         zaxis.png \
75         e2k_1.png \
76         e2k_2.png \
77         e2k_3.png \
78         e2k_4.png \
79         qper_qpar.png \
80         $(SIRIUSFILES) \
81         $(SVGFILES)
83 CLEANFILES = $(SIRIUSFILES) $(SVGFILES) sirius-stamp
85 MAINTAINERCLEANFILES = $(dist_noinst_DATA)
87 EXTRA_DIST = \
88         3S+1D.asy \
89         B_b3_y.asy \
90         B_a.asy \
91         B_b.asy \
92         crystal.asy \
93         4S+2D.asy \
94         4S+2D_reciprocal.asy \
95         4S+2D_reciprocal2.asy \
96         4S+2D_reciprocal3.asy \
97         4S+2D_reciprocal4.asy \
98         k4cv.asy \
99         k6c.asy \
100         med2_3_slits.asy \
101         diffractometer.asy \
102         zaxis.asy \
103         eulerians.asy \
104         e2k_1.asy \
105         e2k_2.asy \
106         e2k_3.asy \
107         e2k_4.asy \
108         qper_qpar.asy \
109         sirius-s.gnuplot \
110         sirius-m.gnuplot \
111         sirius-m-zoom.gnuplot \
112         sirius-m3-100.gnuplot \
113         traj_n.gnuplot
115 # Support for GNU Flymake, in Emacs.
117 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
118 check-syntax:
119         test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)