aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun
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 /util/fbrun
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 'util/fbrun')
-rw-r--r--util/fbrun/Makefile.am16
-rw-r--r--util/fbrun/Makemodule.am22
2 files changed, 22 insertions, 16 deletions
diff --git a/util/fbrun/Makefile.am b/util/fbrun/Makefile.am
deleted file mode 100644
index 92f7c47..0000000
--- a/util/fbrun/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
1FLUXBOX_SRC_DIR= ../../src/
2AM_CPPFLAGS= -I$(top_srcdir)/src -I$(top_srcdir)/src/FbTk -include $(top_builddir)/config.h
3bin_PROGRAMS= fbrun
4fbrun_SOURCES= FbRun.hh FbRun.cc main.cc fbrun.xpm
5fbrun_LDADD= ${FLUXBOX_SRC_DIR}FbTk/libFbTk.a
6fbrun_LDFLAGS = \
7 $(FONTCONFIG_LIBS) \
8 $(FRIBIDI_LIBS) \
9 $(X11_LIBS) \
10 $(XINERAMA_LIBS) \
11 $(XFT_LIBS) \
12 $(XPM_LIBS) \
13 $(XRENDER_LIBS)
14
15${FLUXBOX_SRC_DIR}FbTk/libFbTk.a:
16 cd ${FLUXBOX_SRC_DIR}FbTk && make
diff --git a/util/fbrun/Makemodule.am b/util/fbrun/Makemodule.am
new file mode 100644
index 0000000..cb98e92
--- /dev/null
+++ b/util/fbrun/Makemodule.am
@@ -0,0 +1,22 @@
1bin_PROGRAMS += fbrun
2
3fbrun_CPPFLAGS = \
4 $(AM_CPPFLAGS) \
5 -I$(fbtk_incdir)
6
7fbrun_SOURCES = \
8 util/fbrun/FbRun.hh \
9 util/fbrun/FbRun.cc \
10 util/fbrun/main.cc \
11 util/fbrun/fbrun.xpm
12
13fbrun_LDADD = libFbTk.a
14
15fbrun_LDFLAGS = \
16 $(FONTCONFIG_LIBS) \
17 $(FRIBIDI_LIBS) \
18 $(X11_LIBS) \
19 $(XFT_LIBS) \
20 $(XINERAMA_LIBS) \
21 $(XPM_LIBS) \
22 $(XRENDER_LIBS)