blob: b338a7665bbc40c08995cdf0c68c211399eb94d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
lib_LTLIBRARIES = libqmi-glib.la
libqmi_glib_la_CPPFLAGS = \
$(LIBQMI_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/src \
-I$(top_builddir)/src
# Error types
qmi-error-types.h: qmi-errors.h $(top_srcdir)/build-aux/templates/qmi-error-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_ERROR_TYPES_H__\n#define __LIBQMI_GLIB_ERROR_TYPES_H__\n#include \"qmi-errors.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-error-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_ERROR_TYPES_H__ */\n" \
qmi-errors.h > $@
qmi-error-types.c: qmi-errors.h qmi-error-types.h $(top_srcdir)/build-aux/templates/qmi-error-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-errors.h\"\n#include \"qmi-error-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-error-types-template.c \
qmi-errors.h > $@
# Enum types
ENUMS = qmi-enums.h qmi-dms.h qmi-wds.h qmi-ctl.h
qmi-enum-types.h: $(ENUMS) $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#ifndef __LIBQMI_GLIB_ENUM_TYPES_H__\n#define __LIBQMI_GLIB_ENUM_TYPES_H__\n#include \"qmi-enums.h\"\n#include \"qmi-dms.h\"\n#include \"qmi-ctl.h\"\n#include \"qmi-wds.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.h \
--ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_H__ */\n" \
$(ENUMS) > $@
qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"qmi-enum-types.h\"\n" \
--template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c \
$(ENUMS) > $@
# QMI message handling generation
qmi-tmp-ctl.c qmi-tmp-ctl.h: $(top_srcdir)/data/qmi-service-ctl.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
$(top_srcdir)/data/qmi-service-ctl.json \
qmi-tmp-ctl
# Additional dependencies
qmi-device.c: qmi-error-types.h qmi-enum-types.h
qmi-client.c: qmi-error-types.h qmi-enum-types.h
qmi-client-ctl.c: qmi-error-types.h qmi-enum-types.h
qmi-message.c: qmi-error-types.h qmi-enum-types.h
qmi-message-ctl.c: qmi-error-types.h
qmi-message-dms.c: qmi-error-types.h
qmi-tmp-*.c: qmi-error-types.h
qmi-tmp-*.h: qmi-enum-types.h
libqmi_glib_la_SOURCES = \
libqmi-glib.h \
qmi-errors.h qmi-error-types.h qmi-error-types.c \
qmi-enums.h qmi-enum-types.h qmi-enum-types.c \
qmi-utils.h qmi-utils.c \
qmi-message.h qmi-message.c \
qmi-tmp-ctl.c qmi-tmp-ctl.h \
qmi-message-ctl.h qmi-message-ctl.c \
qmi-message-dms.h qmi-message-dms.c \
qmi-message-wds.h qmi-message-wds.c \
qmi-device.h qmi-device.c \
qmi-client.h qmi-client.c \
qmi-ctl.h qmi-client-ctl.h qmi-client-ctl.c \
qmi-dms.h qmi-client-dms.h qmi-client-dms.c \
qmi-wds.h qmi-client-wds.h qmi-client-wds.c
libqmi_glib_la_LIBADD = \
$(LIBQMI_GLIB_LIBS)
includedir = @includedir@/libqmi-glib
include_HEADERS = \
libqmi-glib.h \
qmi-errors.h qmi-error-types.h \
qmi-enums.h qmi-enum-types.h \
qmi-device.h \
qmi-client.h \
qmi-dms.h qmi-client-dms.h \
qmi-wds.h qmi-client-wds.h
|