1 ## Process this file with automake to produce Makefile.in
3 AM_LDFLAGS = -no-undefined -version-info 5:0:0
4 AM_LDFLAGS += $(GSL_LIBS)
5 AM_CFLAGS = -I$(top_srcdir) \
14 hkl-detector-factory.c \
16 hkl-geometry-factory.c \
23 hkl-pseudoaxis-auto.c \
24 hkl-pseudoaxis-common-eulerians.c \
25 hkl-pseudoaxis-common-hkl.c \
26 hkl-pseudoaxis-common-psi.c \
27 hkl-pseudoaxis-common-q.c \
28 hkl-pseudoaxis-e4c-hkl.c \
29 hkl-pseudoaxis-e4c-psi.c \
30 hkl-pseudoaxis-e6c-hkl.c \
31 hkl-pseudoaxis-e6c-psi.c \
32 hkl-pseudoaxis-factory.c \
33 hkl-pseudoaxis-k4cv-hkl.c \
34 hkl-pseudoaxis-k4cv-psi.c \
35 hkl-pseudoaxis-k6c-hkl.c \
36 hkl-pseudoaxis-k6c-psi.c \
37 hkl-pseudoaxis-zaxis-hkl.c \
38 hkl-pseudoaxis-soleil-sixs-med.c \
39 hkl-pseudoaxis-petra3-hkl.c \
46 hkl_public_h_sources = \
49 hkl-detector-factory.h \
52 hkl-geometry-factory.h \
59 hkl-pseudoaxis-factory.h \
66 hkl_private_h_sources = \
67 hkl-parameter-private.h \
68 hkl-pseudoaxis-private.h \
69 hkl-pseudoaxis-auto-private.h \
70 hkl-pseudoaxis-common-eulerians-private.h \
71 hkl-pseudoaxis-common-hkl-private.h \
72 hkl-pseudoaxis-common-q-private.h \
73 hkl-pseudoaxis-common-psi-private.h \
74 hkl-pseudoaxis-e4c-private.h \
75 hkl-pseudoaxis-e6c-private.h \
76 hkl-pseudoaxis-k4cv-private.h \
77 hkl-pseudoaxis-k6c-private.h \
78 hkl-pseudoaxis-zaxis-private.h \
79 hkl-pseudoaxis-soleil-sixs-med-private.h \
80 hkl-pseudoaxis-petra3-private.h
82 lib_LTLIBRARIES = libhkl.la
83 libhkl_la_SOURCES = $(hkl_c_sources) $(hkl_private_h_sources)
84 libhkl_la_LIBADD = $(top_builddir)/ccan/libccan.la
85 hklincludedir=$(includedir)/hkl
86 hklinclude_HEADERS = $(hkl_public_h_sources)
90 -include $(INTROSPECTION_MAKEFILE)
92 INTROSPECTION_SCANNER_ARGS = \
93 --add-include-path=$(srcdir) \
94 --add-include-path=. \
96 INTROSPECTION_COMPILER_ARGS = \
97 --includedir=$(srcdir) \
100 if HAVE_INTROSPECTION
102 libhkl_la_SOURCES += \
104 hkl-type-builtins.c \
105 hkl-type-builtins.h \
107 hkl-binding-private.h
109 hklinclude_HEADERS += hkl-types.h
111 introspection_files = \
122 hkl-geometry-factory.h \
124 hkl-detector-factory.h \
128 hkl-pseudoaxis-factory.h \
129 hkl-binding-private.h \
141 hkl-geometry-factory.c \
143 hkl-detector-factory.c \
147 hkl-pseudoaxis-factory.c \
150 hkl-type-builtins.c \
153 AM_LDFLAGS += $(GOBJECT_LIBS)
154 AM_CFLAGS += $(GOBJECT_CFLAGS)
156 hkl-type-builtins.h: stamp-hkl-type-builtins.h
158 stamp-hkl-type-builtins.h: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.h.template
159 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.h.template \
160 $(hkl_public_h_sources) ) >> xgen-gtbh \
161 && (cmp -s xgen-gtbh hkl-type-builtins.h || cp xgen-gtbh hkl-type-builtins.h ) \
163 && echo timestamp > $(@F)
164 hkl-type-builtins.c: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.c.template
165 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.c.template \
166 $(hkl_public_h_sources) ) > xgen-gtbc \
167 && cp xgen-gtbc hkl-type-builtins.c \
170 Hkl-5.0.gir: $(INTROSPECTION_SCANNER) libhkl.la Makefile
172 Hkl_5_0_gir_NAMESPACE = Hkl
173 Hkl_5_0_gir_VERSION = 5.0
174 Hkl_5_0_gir_LIBS = libhkl.la
175 Hkl_5_0_gir_FILES = $(introspection_files)
176 Hkl_5_0_gir_PACKAGES = gobject-2.0
177 Hkl_5_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS)
178 Hkl_5_0_gir_EXPORT_PACKAGES = hkl-5.0
179 Hkl_5_0_gir_SCANNERFLAGS = --warn-all --c-include='hkl.h'
181 INTROSPECTION_GIRS += Hkl-5.0.gir
183 girdir = $(datadir)/gir-1.0
184 gir_DATA = $(INTROSPECTION_GIRS)
186 typelibsdir = $(libdir)/girepository-1.0
187 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
190 hkl-type-builtins.h.template \
191 hkl-type-builtins.c.template
193 CLEANFILES = $(gir_DATA) $(typelibs_DATA) stamp-hkl-type-builtins.h hkl-type-builtins.h hkl-type-builtins.c
197 # Support for GNU Flymake, in Emacs.
199 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
201 test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)