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 \
37 hkl-engine-petra3-p09-eh2.c \
38 hkl-engine-soleil-sirius-turret.c \
39 hkl-engine-soleil-sixs-med.c \
47 hkl_public_h_sources = ../hkl.h
49 hkl_private_h_sources = \
51 hkl-detector-private.h \
52 hkl-factory-private.h \
53 hkl-geometry-private.h \
54 hkl-interval-private.h \
55 hkl-lattice-private.h \
56 hkl-macros-private.h \
57 hkl-matrix-private.h \
58 hkl-parameter-private.h \
59 hkl-pseudoaxis-private.h \
60 hkl-pseudoaxis-auto-private.h \
61 hkl-pseudoaxis-common-eulerians-private.h \
62 hkl-pseudoaxis-common-hkl-private.h \
63 hkl-pseudoaxis-common-q-private.h \
64 hkl-pseudoaxis-common-psi-private.h \
65 hkl-quaternion-private.h \
66 hkl-sample-private.h \
67 hkl-source-private.h \
71 lib_LTLIBRARIES = libhkl.la
72 libhkl_la_SOURCES = $(hkl_c_sources) $(hkl_private_h_sources)
73 libhkl_la_LIBADD = ccan/libccan.la
76 -Wno-initializer-overrides \
77 -Wno-unused-result # \ do not activate visibility yet.
80 # just compile the template diffractometer to be sure that it is valid
81 noinst_LTLIBRARIES = libdummy.la
82 libdummy_la_SOURCES = hkl-engine-template.c
86 -include $(INTROSPECTION_MAKEFILE)
88 INTROSPECTION_SCANNER_ARGS = \
89 --add-include-path=$(srcdir) \
90 --add-include-path=. \
92 INTROSPECTION_COMPILER_ARGS = \
93 --includedir=$(srcdir) \
98 libhkl_la_SOURCES += \
101 hkl-type-builtins.c \
102 hkl-type-builtins.h \
104 hkl-binding-private.h
106 introspection_files = \
108 hkl-binding-private.h \
115 hkl-detector-factory.c \
122 hkl-type-builtins.c \
125 AM_LDFLAGS += $(GOBJECT_LIBS)
126 AM_CFLAGS += $(GOBJECT_CFLAGS)
128 hkl-type-builtins.h: stamp-hkl-type-builtins.h
130 stamp-hkl-type-builtins.h: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.h.template
131 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.h.template \
132 $(hkl_public_h_sources) ) >> xgen-gtbh \
133 && (cmp -s xgen-gtbh hkl-type-builtins.h || cp xgen-gtbh hkl-type-builtins.h ) \
135 && echo timestamp > $(@F)
136 hkl-type-builtins.c: $(hkl_public_h_sources) $(srcdir)/hkl-type-builtins.c.template hkl-type-builtins.h
137 ( cd $(srcdir) && $(GLIB_MKENUMS) --template hkl-type-builtins.c.template \
138 $(hkl_public_h_sources) ) > xgen-gtbc \
139 && cp xgen-gtbc hkl-type-builtins.c \
142 Hkl-@VMAJ@.0.gir: $(INTROSPECTION_SCANNER) libhkl.la Makefile
144 Hkl_@VMAJ@_0_gir_NAMESPACE = Hkl
145 Hkl_@VMAJ@_0_gir_VERSION = @VMAJ@.0
146 Hkl_@VMAJ@_0_gir_LIBS = libhkl.la
147 Hkl_@VMAJ@_0_gir_FILES = $(introspection_files)
148 Hkl_@VMAJ@_0_gir_PACKAGES = gobject-2.0
149 Hkl_@VMAJ@_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS)
150 Hkl_@VMAJ@_0_gir_EXPORT_PACKAGES = hkl-@VMAJ@.0
151 Hkl_@VMAJ@_0_gir_SCANNERFLAGS = --warn-all --c-include='hkl.h'
153 INTROSPECTION_GIRS += Hkl-@VMAJ@.0.gir
155 girdir = $(datadir)/gir-1.0
156 gir_DATA = $(INTROSPECTION_GIRS)
158 typelibsdir = $(libdir)/girepository-1.0
159 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
162 hkl-type-builtins.h.template \
163 hkl-type-builtins.c.template
165 CLEANFILES = $(gir_DATA) $(typelibs_DATA) stamp-hkl-type-builtins.h hkl-type-builtins.h hkl-type-builtins.c
169 # Support for GNU Flymake, in Emacs.
171 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
173 test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)
175 # check for includes with iwyu
177 @list='$(libhkl_la_SOURCES)';\
179 iwyu $(AM_CFLAGS) $$p; \
182 .PHONY: check-syntax iwyu