1 ## Process this file with automake to produce Makefile.in
5 -no-undefined -version-info 5:0:0 \
9 -DG_LOG_DOMAIN=\"Hkl\" \
12 -I$(top_srcdir)/third-party/ \
13 -ftrack-macro-expansion=0 \
20 hkl-detector-factory.c \
29 hkl-pseudoaxis-auto.c \
30 hkl-pseudoaxis-common.c \
31 hkl-pseudoaxis-common-eulerians.c \
32 hkl-pseudoaxis-common-hkl.c \
33 hkl-pseudoaxis-common-psi.c \
34 hkl-pseudoaxis-common-q.c \
35 hkl-pseudoaxis-common-readonly.c \
36 hkl-pseudoaxis-common-tth.c \
41 hkl-engine-esrf-id01-psic.c \
43 hkl-engine-petra3-p08-lisa.c \
44 hkl-engine-petra3-p09-eh2.c \
45 hkl-engine-petra3-p23-4c.c \
46 hkl-engine-petra3-p23-6c.c \
47 hkl-engine-soleil-nanoscopium-robot.c \
48 hkl-engine-soleil-sirius-turret.c \
49 hkl-engine-soleil-sixs-med.c \
58 hkl_public_h_sources = ../hkl.h
60 hkl_private_h_sources = \
62 hkl-detector-private.h \
63 hkl-factory-private.h \
64 hkl-geometry-private.h \
65 hkl-interval-private.h \
66 hkl-lattice-private.h \
67 hkl-macros-private.h \
68 hkl-matrix-private.h \
69 hkl-parameter-private.h \
70 hkl-pseudoaxis-private.h \
71 hkl-pseudoaxis-auto-private.h \
72 hkl-pseudoaxis-common-private.h \
73 hkl-pseudoaxis-common-eulerians-private.h \
74 hkl-pseudoaxis-common-hkl-private.h \
75 hkl-pseudoaxis-common-psi-private.h \
76 hkl-pseudoaxis-common-q-private.h \
77 hkl-pseudoaxis-common-readonly-private.h \
78 hkl-pseudoaxis-common-tth-private.h \
79 hkl-quaternion-private.h \
80 hkl-sample-private.h \
81 hkl-source-private.h \
82 hkl-trajectory-private.h \
86 lib_LTLIBRARIES = libhkl.la
87 libhkl_la_SOURCES = $(hkl_c_sources) $(hkl_private_h_sources)
88 libhkl_la_LIBADD = ccan/libccan.la
91 -Wno-initializer-overrides \
95 # just compile the template diffractometer to be sure that it is valid
96 noinst_LTLIBRARIES = libdummy.la
97 libdummy_la_SOURCES = hkl-engine-template.c
101 -include $(INTROSPECTION_MAKEFILE)
103 INTROSPECTION_SCANNER_ARGS = \
104 --add-include-path=$(srcdir) \
105 --add-include-path=. \
107 INTROSPECTION_COMPILER_ARGS = \
108 --includedir=$(srcdir) \
111 if HAVE_INTROSPECTION
113 libhkl_la_SOURCES += \
116 hkl-type-builtins.c \
117 hkl-type-builtins.h \
119 hkl-binding-private.h
121 introspection_files = \
123 hkl-binding-private.h \
132 hkl-detector-factory.c \
139 hkl-type-builtins.c \
142 AM_LDFLAGS += $(GOBJECT_LIBS)
143 AM_CFLAGS += $(GOBJECT_CFLAGS)
145 hkl-type-builtins.h: stamp-hkl-type-builtins.h
147 stamp-hkl-type-builtins.h: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.h.template
148 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.h.template \
149 $(hkl_public_h_sources) ) >> xgen-gtbh \
150 && (cmp -s xgen-gtbh hkl-type-builtins.h || cp xgen-gtbh hkl-type-builtins.h ) \
152 && echo timestamp > $(@F)
153 hkl-type-builtins.c: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.c.template hkl-type-builtins.h
154 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.c.template \
155 $(hkl_public_h_sources) ) > xgen-gtbc \
156 && cp xgen-gtbc hkl-type-builtins.c \
159 Hkl-@VMAJ@.0.gir: $(INTROSPECTION_SCANNER) libhkl.la Makefile
161 Hkl_@VMAJ@_0_gir_NAMESPACE = Hkl
162 Hkl_@VMAJ@_0_gir_VERSION = @VMAJ@.0
163 Hkl_@VMAJ@_0_gir_LIBS = libhkl.la
164 Hkl_@VMAJ@_0_gir_FILES = $(introspection_files)
165 Hkl_@VMAJ@_0_gir_PACKAGES = gobject-2.0
166 Hkl_@VMAJ@_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS)
167 Hkl_@VMAJ@_0_gir_EXPORT_PACKAGES = hkl-@VMAJ@.0
168 Hkl_@VMAJ@_0_gir_SCANNERFLAGS = --warn-all --c-include='hkl.h'
170 INTROSPECTION_GIRS += Hkl-@VMAJ@.0.gir
172 girdir = $(datadir)/gir-1.0
173 gir_DATA = $(INTROSPECTION_GIRS)
175 typelibsdir = $(libdir)/girepository-1.0
176 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
179 hkl-type-builtins.h.template \
180 hkl-type-builtins.c.template
182 CLEANFILES = $(gir_DATA) $(typelibs_DATA) stamp-hkl-type-builtins.h hkl-type-builtins.h hkl-type-builtins.c
186 # Support for GNU Flymake, in Emacs.
188 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
190 test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)
192 # check for includes with iwyu
194 @list='$(libhkl_la_SOURCES)';\
196 iwyu $(AM_CFLAGS) $$p; \
199 .PHONY: check-syntax iwyu