aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libosmo-gtlv/test_gtlv_gen/Makefile.am
blob: c08b1f10f8218d575025f24cb600bd94344a0d65 (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
AM_CPPFLAGS = \
	-I$(top_srcdir)/include \
	-I$(bulddir) \
	$(NULL)

AM_CFLAGS = \
	-Wall \
	$(LIBOSMOCORE_CFLAGS) \
	$(NULL)

check_PROGRAMS = \
	gen__myproto_ies_auto \
	gtlv_gen_test \
	$(NULL)

EXTRA_DIST = \
	myproto_ies_custom.h \
	gtlv_gen_test.ok \
	$(NULL)

BUILT_SOURCES = \
	myproto_ies_auto.h \
	myproto_ies_auto.c \
	$(NULL)

CLEANFILES = \
	myproto_ies_auto.h \
	myproto_ies_auto.c \
	$(NULL)

gen__myproto_ies_auto_SOURCES = \
	gen__myproto_ies_auto.c \
	myproto_ies_custom.c \
	$(NULL)

gen__myproto_ies_auto_LDADD = \
	$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
	$(LIBOSMOCORE_LIBS) \
	$(NULL)

myproto_ies_auto.h: $(builddir)/gen__myproto_ies_auto
	$(builddir)/gen__myproto_ies_auto h > $(builddir)/myproto_ies_auto.h
myproto_ies_auto.c: $(builddir)/gen__myproto_ies_auto
	$(builddir)/gen__myproto_ies_auto c > $(builddir)/myproto_ies_auto.c

gtlv_gen_test_SOURCES = \
	gtlv_gen_test.c \
	myproto_ies_custom.c \
	myproto_ies_auto.c \
	$(NULL)

gtlv_gen_test_LDADD = \
	$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
	$(LIBOSMOCORE_LIBS) \
	$(NULL)

.PHONY: update_exp
update_exp:
	$(builddir)/gtlv_gen_test >$(srcdir)/gtlv_gen_test.ok