1 ## Process this file with automake to produce Makefile.in
5 -no-undefined -version-info 5:0:0 \
9 -DG_LOG_DOMAIN=\"Hkl\" \
18 hkl-detector-factory.c \
27 hkl-pseudoaxis-auto.c \
28 hkl-pseudoaxis-common-eulerians.c \
29 hkl-pseudoaxis-common-hkl.c \
30 hkl-pseudoaxis-common-psi.c \
31 hkl-pseudoaxis-common-q.c \
32 hkl-pseudoaxis-common-readonly.c \
33 hkl-pseudoaxis-common-tth.c \
39 hkl-engine-petra3-p08-lisa.c \
40 hkl-engine-petra3-p09-eh2.c \
41 hkl-engine-soleil-sirius-turret.c \
42 hkl-engine-soleil-sixs-med.c \
51 hkl_public_h_sources = ../hkl.h
53 hkl_private_h_sources = \
55 hkl-detector-private.h \
56 hkl-factory-private.h \
57 hkl-geometry-private.h \
58 hkl-interval-private.h \
59 hkl-lattice-private.h \
60 hkl-macros-private.h \
61 hkl-matrix-private.h \
62 hkl-parameter-private.h \
63 hkl-pseudoaxis-private.h \
64 hkl-pseudoaxis-auto-private.h \
65 hkl-pseudoaxis-common-eulerians-private.h \
66 hkl-pseudoaxis-common-hkl-private.h \
67 hkl-pseudoaxis-common-psi-private.h \
68 hkl-pseudoaxis-common-q-private.h \
69 hkl-pseudoaxis-common-readonly-private.h \
70 hkl-pseudoaxis-common-tth-private.h \
71 hkl-quaternion-private.h \
72 hkl-sample-private.h \
73 hkl-source-private.h \
74 hkl-trajectory-private.h \
78 lib_LTLIBRARIES = libhkl.la
79 libhkl_la_SOURCES = $(hkl_c_sources) $(hkl_private_h_sources)
80 libhkl_la_LIBADD = ccan/libccan.la
83 -Wno-initializer-overrides \
84 -Wno-unused-result # \ do not activate visibility yet.
87 # just compile the template diffractometer to be sure that it is valid
88 noinst_LTLIBRARIES = libdummy.la
89 libdummy_la_SOURCES = hkl-engine-template.c
93 -include $(INTROSPECTION_MAKEFILE)
95 INTROSPECTION_SCANNER_ARGS = \
96 --add-include-path=$(srcdir) \
97 --add-include-path=. \
99 INTROSPECTION_COMPILER_ARGS = \
100 --includedir=$(srcdir) \
103 if HAVE_INTROSPECTION
105 libhkl_la_SOURCES += \
108 hkl-type-builtins.c \
109 hkl-type-builtins.h \
111 hkl-binding-private.h
113 introspection_files = \
115 hkl-binding-private.h \
124 hkl-detector-factory.c \
131 hkl-type-builtins.c \
134 AM_LDFLAGS += $(GOBJECT_LIBS)
135 AM_CFLAGS += $(GOBJECT_CFLAGS)
137 hkl-type-builtins.h: stamp-hkl-type-builtins.h
139 stamp-hkl-type-builtins.h: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.h.template
140 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.h.template \
141 $(hkl_public_h_sources) ) >> xgen-gtbh \
142 && (cmp -s xgen-gtbh hkl-type-builtins.h || cp xgen-gtbh hkl-type-builtins.h ) \
144 && echo timestamp > $(@F)
145 hkl-type-builtins.c: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.c.template hkl-type-builtins.h
146 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.c.template \
147 $(hkl_public_h_sources) ) > xgen-gtbc \
148 && cp xgen-gtbc hkl-type-builtins.c \
151 Hkl-@VMAJ@.0.gir: $(INTROSPECTION_SCANNER) libhkl.la Makefile
153 Hkl_@VMAJ@_0_gir_NAMESPACE = Hkl
154 Hkl_@VMAJ@_0_gir_VERSION = @VMAJ@.0
155 Hkl_@VMAJ@_0_gir_LIBS = libhkl.la
156 Hkl_@VMAJ@_0_gir_FILES = $(introspection_files)
157 Hkl_@VMAJ@_0_gir_PACKAGES = gobject-2.0
158 Hkl_@VMAJ@_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS)
159 Hkl_@VMAJ@_0_gir_EXPORT_PACKAGES = hkl-@VMAJ@.0
160 Hkl_@VMAJ@_0_gir_SCANNERFLAGS = --warn-all --c-include='hkl.h'
162 INTROSPECTION_GIRS += Hkl-@VMAJ@.0.gir
164 girdir = $(datadir)/gir-1.0
165 gir_DATA = $(INTROSPECTION_GIRS)
167 typelibsdir = $(libdir)/girepository-1.0
168 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
171 hkl-type-builtins.h.template \
172 hkl-type-builtins.c.template
174 CLEANFILES = $(gir_DATA) $(typelibs_DATA) stamp-hkl-type-builtins.h hkl-type-builtins.h hkl-type-builtins.c
178 # Support for GNU Flymake, in Emacs.
180 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
182 test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)
184 # check for includes with iwyu
186 @list='$(libhkl_la_SOURCES)';\
188 iwyu $(AM_CFLAGS) $$p; \
191 .PHONY: check-syntax iwyu