1pkglib_LTLIBRARIES = controls.la
2
3nodist_controls_la_SOURCES = \
4	controls.cpp \
5	index.cpp \
6	treemenu.cpp \
7	page1.cpp \
8	page2.cpp \
9	page3.cpp \
10	page4.cpp \
11	styles.cpp \
12	submitlink.cpp \
13	tooltip.cpp \
14	tooltipArea.cpp \
15	treeview.cpp \
16	minus.cpp \
17	plus.cpp
18
19EXTRA_DIST = \
20	controls.ecpp \
21	index.ecpp \
22	treemenu.ecpp \
23	page1.ecpp \
24	page2.ecpp \
25	page3.ecpp \
26	page4.ecpp \
27	styles.css \
28	submitlink.ecpp \
29	tooltip.ecpp \
30	tooltipArea.ecpp \
31	treeview.ecpp \
32	minus.png \
33	plus.png \
34	tntnet.xml
35
36AM_CPPFLAGS = -I$(top_srcdir)/framework/common
37controls_la_LDFLAGS = -module @SHARED_LIB_FLAG@
38controls_la_LIBADD = $(top_builddir)/framework/common/libtntnet.la
39
40noinst_DATA = tntnet.xml
41CLEANFILES = \
42	controls.cpp \
43	index.cpp \
44	treemenu.cpp \
45	page1.cpp \
46	page2.cpp \
47	page3.cpp \
48	page4.cpp \
49	styles.cpp \
50	submitlink.cpp \
51	tooltip.cpp \
52	tooltipArea.cpp \
53	treeview.cpp \
54	minus.cpp \
55	plus.cpp
56
57ECPPC=$(top_builddir)/sdk/tools/ecppc/ecppc
58
59SUFFIXES=.ecpp .png .css .cpp
60.ecpp.cpp:
61	$(ECPPC) -o $@ $<
62.png.cpp:
63	$(ECPPC) -b -m image/png -o $@ $<
64.css.cpp:
65	$(ECPPC) -b -m text/css -o $@ $<
66
67tntnet.xml:
68	$(SHELL) $(top_builddir)/tntnet-config --config=controls|$(AWK) '/<\/tntnet>/{print "  <compPath>\n    <entry>.libs</entry>\n  </compPath>"} {print}' >$@
69