1SUBDIRS=types
2
3AM_CPPFLAGS=@all_includes@ -I$(gwenhywfar_symlinkdir)
4
5
6typefiles=\
7  tm_item.xml \
8  tm_enum.xml \
9  tm_define.xml \
10  tm_code.xml \
11  tm_signal.xml \
12  tm_slot.xml
13
14
15bin_PROGRAMS=typemaker2
16noinst_HEADERS=\
17  tm_type_p.h tm_type.h \
18  tm_member_p.h tm_member.h \
19  tm_header_p.h tm_header.h \
20  tm_typemanager_p.h tm_typemanager.h \
21  tm_virtualfn_p.h tm_virtualfn.h \
22  tm_builder_p.h tm_builder.h \
23  tm_item_p.h tm_item.h \
24  tm_enum_p.h tm_enum.h \
25  tm_define_p.h tm_define.h \
26  tm_code_p.h tm_code.h \
27  tm_inline_p.h tm_inline.h \
28  tm_signal_p.h tm_signal.h \
29  tm_slot_p.h tm_slot.h \
30  tm_group_p.h tm_group.h \
31  tm_util.h \
32  typemaker2.h \
33  tm_builder_c.h
34
35typemaker2_SOURCES=\
36  tm_type.c \
37  tm_member.c \
38  tm_header.c \
39  tm_util.c \
40  tm_typemanager.c \
41  tm_builder.c \
42  tm_builder_c.c \
43  tm_item.c \
44  tm_enum.c \
45  tm_define.c \
46  tm_code.c \
47  tm_inline.c \
48  tm_virtualfn.c \
49  tm_signal.c \
50  tm_slot.c \
51  tm_group.c \
52  build.c \
53  builddefs.c \
54  main.c
55
56#  tm_enum.c
57
58typemaker2_LDADD=$(top_builddir)/src/$(gwenhywfar_internal_libname)
59
60
61if IS_WINDOWS
62
63typemaker2_LDFLAGS=-mconsole
64typemaker2_LDADD+= $(PROG_LIBRARIES)
65
66endif
67
68EXTRA_DIST=$(typefiles)
69
70#BUILT_SOURCES=
71
72
73
74sources:
75	for f in $(typemaker2_SOURCES); do \
76	  echo $(subdir)/$$f >>$(top_srcdir)/i18nsources; \
77	done
78	for d in $(SUBDIRS); do \
79	  make -C $$d sources; \
80	done
81
82indent:  $(BUILT_SOURCES)
83	$(ASTYLE) \
84	  --style=gnu \
85	  --indent=spaces=2 \
86	  --min-conditional-indent=0 \
87	  --indent-labels \
88	  --pad=oper \
89	  --one-line=keep-blocks \
90	  --suffix=none \
91	  -a -y $(BUILT_SOURCES)
92
93types: $(typefiles)
94	./typemaker2 -I types/c -I $(srcdir) $(typefiles)
95
96
97
98