summaryrefslogtreecommitdiff
path: root/include/openflow/automake.mk
blob: 14f7a476c71a4576e68468f3eb8dcdb00ce2e3d9 (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
noinst_HEADERS += \
	include/openflow/nicira-ext.h \
	include/openflow/openflow-1.0.h \
	include/openflow/openflow-1.1.h \
	include/openflow/openflow-1.2.h \
	include/openflow/openflow-1.3.h \
	include/openflow/openflow-1.4.h \
	include/openflow/openflow-common.h \
	include/openflow/openflow.h

if HAVE_PYTHON
SUFFIXES += .h .hstamp

.h.hstamp:
	$(AM_V_GEN)$(run_python) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< && \
	touch $@

HSTAMP_FILES = \
	include/openflow/nicira-ext.hstamp \
	include/openflow/openflow-1.0.hstamp \
	include/openflow/openflow-1.1.hstamp \
	include/openflow/openflow-1.2.hstamp \
	include/openflow/openflow-1.3.hstamp \
	include/openflow/openflow-1.4.hstamp \
	include/openflow/openflow-common.hstamp \
	include/openflow/openflow.hstamp
CLEANFILES += $(HSTAMP_FILES)
ALL_LOCAL += $(HSTAMP_FILES)
$(HSTAMP_FILES): build-aux/check-structs

include/openflow/openflow-1.0.hstamp: \
	include/openflow/openflow-common.h
include/openflow/openflow-1.1.hstamp: \
	include/openflow/openflow-common.h
include/openflow/openflow-1.2.hstamp: \
	include/openflow/openflow-common.h \
	include/openflow/openflow-1.1.h
include/openflow/openflow-1.3.hstamp: \
	include/openflow/openflow-common.h \
	include/openflow/openflow-1.1.h \
	include/openflow/openflow-1.2.h
include/openflow/openflow-1.4.hstamp: \
	include/openflow/openflow-1.4.h
include/openflow/nicira-ext.hstamp: \
	include/openflow/openflow.h \
	include/openflow/openflow-common.h \
	include/openflow/openflow-1.0.h \
	include/openflow/openflow-1.1.h \
	include/openflow/openflow-1.2.h \
	include/openflow/openflow-1.3.h
endif

EXTRA_DIST += build-aux/check-structs