blob: 71d85c3f521ad413d63cd34bb1cd8e83e40acffa (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
lib_LTLIBRARIES = libqmi-glib.la
libqmi_glib_la_CPPFLAGS = \
$(LIBQMI_GLIB_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/libqmi-glib \
-I$(top_builddir)/libqmi-glib
# 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-enums-wds.h qmi-enums-dms.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 qmi-ctl.stamp qmi-dms.stamp qmi-wds.stamp
$(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-enums-wds.h\"\n#include \"qmi-enums-dms.h\"\n#include \"qmi-ctl.h\"\n#include \"qmi-dms.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) > $@
# CTL service
qmi-ctl.stamp: $(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) \
rm -f qmi-ctl.h && \
rm -f qmi-ctl.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-ctl.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-ctl && \
touch $@
# DMS service
qmi-dms.stamp: $(top_srcdir)/data/qmi-service-dms.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-dms.h && \
rm -f qmi-dms.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-dms.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-dms && \
touch $@
# WDS service
qmi-wds.stamp: $(top_srcdir)/data/qmi-service-wds.json $(top_srcdir)/build-aux/qmi-codegen/*.py $(top_srcdir)/build-aux/qmi-codegen/qmi-codegen
$(AM_V_GEN) \
rm -f qmi-wds.h && \
rm -f qmi-wds.c && \
$(top_srcdir)/build-aux/qmi-codegen/qmi-codegen \
--input $(top_srcdir)/data/qmi-service-wds.json \
--include $(top_srcdir)/data/qmi-common.json \
--output qmi-wds && \
touch $@
# 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-message.c: qmi-error-types.h qmi-enum-types.h qmi-ctl.h qmi-dms.h qmi-wds.h
qmi-ctl.h: qmi-ctl.stamp
qmi-ctl.c: qmi-error-types.h qmi-enum-types.h qmi-ctl.stamp
qmi-dms.h: qmi-dms.stamp
qmi-dms.c: qmi-error-types.h qmi-enum-types.h qmi-dms.stamp
qmi-wds.h: qmi-wds.stamp
qmi-wds.c: qmi-error-types.h qmi-enum-types.h qmi-wds.stamp
libqmi_glib_la_SOURCES = \
libqmi-glib.h \
qmi-errors.h qmi-error-types.h qmi-error-types.c \
qmi-enums-wds.h \
qmi-enums-dms.h \
qmi-enums.h qmi-enum-types.h qmi-enum-types.c \
qmi-utils.h qmi-utils.c \
qmi-message.h qmi-message.c \
qmi-device.h qmi-device.c \
qmi-client.h qmi-client.c
nodist_libqmi_glib_la_SOURCES = \
qmi-ctl.c qmi-ctl.h \
qmi-dms.c qmi-dms.h \
qmi-wds.c qmi-wds.h
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-message.h \
qmi-device.h \
qmi-client.h \
qmi-ctl.h \
qmi-enums-dms.h qmi-dms.h \
qmi-enums-wds.h qmi-wds.h
CLEANFILES = \
qmi-ctl.h qmi-ctl.c qmi-ctl.stamp \
qmi-dms.h qmi-dms.c qmi-dms.stamp \
qmi-wds.h qmi-wds.c qmi-wds.stamp
|