aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2013-05-26 09:30:15 (GMT)
committerSami Kerola <kerolasa@iki.fi>2013-05-26 09:38:11 (GMT)
commit7541054b299bbd61310ab0456cf4f25b7a672de3 (patch)
tree47878d28304cb560a4f31bc98466a9347e8edb6c /src/tests
parent82e300c7bac1542f27668a8d7e234b4dd6ea1211 (diff)
downloadfluxbox-7541054b299bbd61310ab0456cf4f25b7a672de3.zip
fluxbox-7541054b299bbd61310ab0456cf4f25b7a672de3.tar.bz2
build-sys: move to non-recursive build
This rather large change will attempts to make 'make' to work better. See excellent paper 'Recursive Make Considered Harmful' by Peter Miller for further explanation why several make files is worse than one for whole project. Note. The tests are build with 'make check' rather than defining TEST. Reference: http://miller.emu.id.au/pmiller/books/rmch/ Reference: http://karelzak.blogspot.co.uk/2013/02/non-recursive-automake.html
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Makefile.am30
-rw-r--r--src/tests/Makemodule.am104
2 files changed, 104 insertions, 30 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
deleted file mode 100644
index 73f269f..0000000
--- a/src/tests/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
1AM_CPPFLAGS= -I$(top_srcdir)/src -include $(top_builddir)/config.h
2
3noinst_PROGRAMS= \
4 testTexture \
5 testFont \
6 testSignals \
7 testKeys \
8 testDemandAttention \
9 testFullscreen \
10 testStringUtil \
11 testRectangleUtil
12
13testTexture_SOURCES = texturetest.cc
14testTexture_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(IMLIB2_LIBS) $(XPM_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS)
15testFont_SOURCES = testFont.cc
16testFont_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS)
17testSignals_SOURCES = testSignals.cc
18testSignals_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS)
19testKeys_SOURCES = testKeys.cc
20testKeys_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS)
21testDemandAttention_SOURCES = testDemandAttention.cc
22testDemandAttention_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS)
23#testResource_SOURCES = Resourcetest.cc
24testFullscreen_SOURCES = fullscreentest.cc
25testFullscreen_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS)
26testStringUtil_SOURCES = StringUtiltest.cc
27testRectangleUtil_SOURCES = testRectangleUtil.cc
28
29LDADD=../FbTk/libFbTk.a
30
diff --git a/src/tests/Makemodule.am b/src/tests/Makemodule.am
new file mode 100644
index 0000000..4ef9a16
--- /dev/null
+++ b/src/tests/Makemodule.am
@@ -0,0 +1,104 @@
1check_PROGRAMS= \
2 testDemandAttention \
3 testFont \
4 testFullscreen \
5 testKeys \
6 testRectangleUtil \
7 testSignals \
8 testStringUtil \
9 testTexture
10
11testDemandAttention_LDFLAGS = \
12 $(FONTCONFIG_LIBS) \
13 $(FRIBIDI_LIBS) \
14 $(X11_LIBS) \
15 $(XFT_LIBS) \
16 $(XRENDER_LIBS) \
17 $(X_LIBS)
18testDemandAttention_CPPFLAGS = \
19 $(AM_CPPFLAGS) \
20 -I$(fbtk_incdir)
21testDemandAttention_SOURCES = \
22 src/tests/testDemandAttention.cc
23
24testFont_LDFLAGS = \
25 $(FONTCONFIG_LIBS) \
26 $(FRIBIDI_LIBS) \
27 $(X11_LIBS) \
28 $(XFT_LIBS) \
29 $(XRENDER_LIBS) \
30 $(X_LIBS)
31testFont_CPPFLAGS = \
32 $(AM_CPPFLAGS) \
33 -I$(fbtk_incdir)
34testFont_SOURCES = \
35 src/tests/testFont.cc
36
37testFullscreen_LDFLAGS = \
38 $(FONTCONFIG_LIBS) \
39 $(FRIBIDI_LIBS) \
40 $(X11_LIBS) \
41 $(XFT_LIBS) \
42 $(XRENDER_LIBS) \
43 $(X_LIBS)
44testFullscreen_CPPFLAGS = \
45 $(AM_CPPFLAGS) \
46 -I$(fbtk_incdir) \
47 -I$(src_incdir)
48testFullscreen_SOURCES = \
49 src/tests/fullscreentest.cc
50
51testKeys_LDFLAGS = \
52 $(FONTCONFIG_LIBS) \
53 $(FRIBIDI_LIBS) \
54 $(X11_LIBS) \
55 $(XFT_LIBS) \
56 $(XRENDER_LIBS) \
57 $(X_LIBS)
58testKeys_CPPFLAGS = \
59 $(AM_CPPFLAGS) \
60 -I$(fbtk_incdir)
61testKeys_SOURCES = \
62 src/tests/testKeys.cc
63
64testRectangleUtil_SOURCES = \
65 src/RectangleUtil.hh \
66 src/tests/testRectangleUtil.cc
67testRectangleUtil_CPPFLAGS = \
68 $(AM_CPPFLAGS) \
69 -I$(top_srcdir)/src
70
71testSignals_LDFLAGS = \
72 $(FRIBIDI_LIBS) \
73 $(X11_LIBS) \
74 $(XRENDER_LIBS) \
75 $(X_LIBS)
76
77testSignals_SOURCES = \
78 src/tests/testSignals.cc
79testSignals_CPPFLAGS = \
80 $(AM_CPPFLAGS) \
81 -I$(fbtk_incdir)
82
83testStringUtil_SOURCES = \
84 src/tests/StringUtiltest.cc
85testStringUtil_CPPFLAGS = \
86 $(AM_CPPFLAGS) \
87 -I$(fbtk_incdir)
88
89testTexture_LDFLAGS = \
90 $(FONTCONFIG_LIBS) \
91 $(FRIBIDI_LIBS) \
92 $(IMLIB2_LIBS) \
93 $(X11_LIBS) \
94 $(XFT_LIBS) \
95 $(XPM_LIBS) \
96 $(XRENDER_LIBS) \
97 $(X_LIBS)
98testTexture_SOURCES = \
99 src/tests/texturetest.cc
100testTexture_CPPFLAGS = \
101 $(AM_CPPFLAGS) \
102 -I$(fbtk_incdir)
103
104#testResource_SOURCE = Resourcetest.cc