diff options
author | Sami Kerola <kerolasa@iki.fi> | 2013-05-26 09:30:15 (GMT) |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2013-05-26 09:38:11 (GMT) |
commit | 7541054b299bbd61310ab0456cf4f25b7a672de3 (patch) | |
tree | 47878d28304cb560a4f31bc98466a9347e8edb6c /src/tests | |
parent | 82e300c7bac1542f27668a8d7e234b4dd6ea1211 (diff) | |
download | fluxbox-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.am | 30 | ||||
-rw-r--r-- | src/tests/Makemodule.am | 104 |
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 @@ | |||
1 | AM_CPPFLAGS= -I$(top_srcdir)/src -include $(top_builddir)/config.h | ||
2 | |||
3 | noinst_PROGRAMS= \ | ||
4 | testTexture \ | ||
5 | testFont \ | ||
6 | testSignals \ | ||
7 | testKeys \ | ||
8 | testDemandAttention \ | ||
9 | testFullscreen \ | ||
10 | testStringUtil \ | ||
11 | testRectangleUtil | ||
12 | |||
13 | testTexture_SOURCES = texturetest.cc | ||
14 | testTexture_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(IMLIB2_LIBS) $(XPM_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS) | ||
15 | testFont_SOURCES = testFont.cc | ||
16 | testFont_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS) | ||
17 | testSignals_SOURCES = testSignals.cc | ||
18 | testSignals_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) | ||
19 | testKeys_SOURCES = testKeys.cc | ||
20 | testKeys_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS) | ||
21 | testDemandAttention_SOURCES = testDemandAttention.cc | ||
22 | testDemandAttention_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS) | ||
23 | #testResource_SOURCES = Resourcetest.cc | ||
24 | testFullscreen_SOURCES = fullscreentest.cc | ||
25 | testFullscreen_LDFLAGS = $(X_LIBS) $(X11_LIBS) $(FRIBIDI_LIBS) $(XRENDER_LIBS) $(XFT_LIBS) $(FONTCONFIG_LIBS) | ||
26 | testStringUtil_SOURCES = StringUtiltest.cc | ||
27 | testRectangleUtil_SOURCES = testRectangleUtil.cc | ||
28 | |||
29 | LDADD=../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 @@ | |||
1 | check_PROGRAMS= \ | ||
2 | testDemandAttention \ | ||
3 | testFont \ | ||
4 | testFullscreen \ | ||
5 | testKeys \ | ||
6 | testRectangleUtil \ | ||
7 | testSignals \ | ||
8 | testStringUtil \ | ||
9 | testTexture | ||
10 | |||
11 | testDemandAttention_LDFLAGS = \ | ||
12 | $(FONTCONFIG_LIBS) \ | ||
13 | $(FRIBIDI_LIBS) \ | ||
14 | $(X11_LIBS) \ | ||
15 | $(XFT_LIBS) \ | ||
16 | $(XRENDER_LIBS) \ | ||
17 | $(X_LIBS) | ||
18 | testDemandAttention_CPPFLAGS = \ | ||
19 | $(AM_CPPFLAGS) \ | ||
20 | -I$(fbtk_incdir) | ||
21 | testDemandAttention_SOURCES = \ | ||
22 | src/tests/testDemandAttention.cc | ||
23 | |||
24 | testFont_LDFLAGS = \ | ||
25 | $(FONTCONFIG_LIBS) \ | ||
26 | $(FRIBIDI_LIBS) \ | ||
27 | $(X11_LIBS) \ | ||
28 | $(XFT_LIBS) \ | ||
29 | $(XRENDER_LIBS) \ | ||
30 | $(X_LIBS) | ||
31 | testFont_CPPFLAGS = \ | ||
32 | $(AM_CPPFLAGS) \ | ||
33 | -I$(fbtk_incdir) | ||
34 | testFont_SOURCES = \ | ||
35 | src/tests/testFont.cc | ||
36 | |||
37 | testFullscreen_LDFLAGS = \ | ||
38 | $(FONTCONFIG_LIBS) \ | ||
39 | $(FRIBIDI_LIBS) \ | ||
40 | $(X11_LIBS) \ | ||
41 | $(XFT_LIBS) \ | ||
42 | $(XRENDER_LIBS) \ | ||
43 | $(X_LIBS) | ||
44 | testFullscreen_CPPFLAGS = \ | ||
45 | $(AM_CPPFLAGS) \ | ||
46 | -I$(fbtk_incdir) \ | ||
47 | -I$(src_incdir) | ||
48 | testFullscreen_SOURCES = \ | ||
49 | src/tests/fullscreentest.cc | ||
50 | |||
51 | testKeys_LDFLAGS = \ | ||
52 | $(FONTCONFIG_LIBS) \ | ||
53 | $(FRIBIDI_LIBS) \ | ||
54 | $(X11_LIBS) \ | ||
55 | $(XFT_LIBS) \ | ||
56 | $(XRENDER_LIBS) \ | ||
57 | $(X_LIBS) | ||
58 | testKeys_CPPFLAGS = \ | ||
59 | $(AM_CPPFLAGS) \ | ||
60 | -I$(fbtk_incdir) | ||
61 | testKeys_SOURCES = \ | ||
62 | src/tests/testKeys.cc | ||
63 | |||
64 | testRectangleUtil_SOURCES = \ | ||
65 | src/RectangleUtil.hh \ | ||
66 | src/tests/testRectangleUtil.cc | ||
67 | testRectangleUtil_CPPFLAGS = \ | ||
68 | $(AM_CPPFLAGS) \ | ||
69 | -I$(top_srcdir)/src | ||
70 | |||
71 | testSignals_LDFLAGS = \ | ||
72 | $(FRIBIDI_LIBS) \ | ||
73 | $(X11_LIBS) \ | ||
74 | $(XRENDER_LIBS) \ | ||
75 | $(X_LIBS) | ||
76 | |||
77 | testSignals_SOURCES = \ | ||
78 | src/tests/testSignals.cc | ||
79 | testSignals_CPPFLAGS = \ | ||
80 | $(AM_CPPFLAGS) \ | ||
81 | -I$(fbtk_incdir) | ||
82 | |||
83 | testStringUtil_SOURCES = \ | ||
84 | src/tests/StringUtiltest.cc | ||
85 | testStringUtil_CPPFLAGS = \ | ||
86 | $(AM_CPPFLAGS) \ | ||
87 | -I$(fbtk_incdir) | ||
88 | |||
89 | testTexture_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) | ||
98 | testTexture_SOURCES = \ | ||
99 | src/tests/texturetest.cc | ||
100 | testTexture_CPPFLAGS = \ | ||
101 | $(AM_CPPFLAGS) \ | ||
102 | -I$(fbtk_incdir) | ||
103 | |||
104 | #testResource_SOURCE = Resourcetest.cc | ||