Fix the creation of the dumpdir directory in stress_floppy Makefile
[ltp-debian.git] / testcases / realtime / Makefile
blobe66b71cafa1babba557013c37e0e2abc3990379a
2 # realtime test suite Makefile.
4 # Copyright (C) 2009, Cisco Systems Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 # Garrett Cooper, September 2009
23 top_srcdir ?= ../..
25 # Override these variables to use non-system available tools.
26 ACLOCAL ?= aclocal
27 AUTOCONF ?= autoconf
28 AUTOHEADER ?= autoheader
29 AUTOMAKE ?= automake
31 include $(top_srcdir)/include/mk/env_pre.mk
32 -include $(abs_srcdir)/config.mk
34 LIBDIR := lib
35 FILTER_OUT_DIRS := $(LIBDIR)
36 LIB := $(LIBDIR)/librealtime.a
38 # START autotools junk
39 AUTOGENERATED_FILES = \
40 m4/Makefile
42 AUTOMAKE_FILES := config.guess config.sub install-sh missing stamp-h1
44 .PHONY: autotools aclocal autoconf autoheader automake
45 autotools: aclocal autoconf autoheader automake
47 .PHONY: ac-clean ac-distclean ac-maintainer-clean
48 ac-clean::
49 $(RM) -rf autom4te.cache
50 $(RM) -f aclocal.m4 config.log config.status
51 $(RM) -f include/realtime_config.h include/realtime_config.h.in include/stamp-h1
53 ac-distclean:: ac-clean
54 ac-maintainer-clean:: ac-distclean
55 $(RM) -f aclocal.m4 configure $(AUTOMAKE_FILES) m4/Makefile.in
57 aclocal.m4:
58 $(ACLOCAL) -I $(abs_srcdir)/m4
60 autoconf: configure
62 include/realtime_config.h.in: configure.in $(wildcard m4/*.m4) aclocal.m4
63 $(AUTOHEADER)
65 configure: configure.in aclocal.m4
66 $(AUTOCONF)
67 automake: $(AUTOMAKE_FILES)
68 $(AUTOMAKE_FILES): m4/Makefile.in
69 m4/Makefile.in: m4/Makefile.am aclocal.m4
70 $(AUTOMAKE) -c -a
72 .PHONY: autoheader
73 autoheader: include/realtime_config.h.in
74 $(AUTOHEADER)
76 distclean:: %: clean ac-distclean
77 $(RM) -f $(AUTOGENERATED_FILES)
79 maintainer-clean:: distclean ac-maintainer-clean
81 $(AUTOGENERATED_FILES): $(top_builddir)/config.status
82 $(SHELL) $^
84 # END autotools junk
86 $(LIBDIR):
87 mkdir -p "$@"
89 $(LIB): $(LIBDIR)
90 $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" all
92 trunk-all: $(LIB)
94 trunk-clean:: | lib-clean
96 lib-clean:: $(LIBDIR)
97 $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" clean
99 include $(top_srcdir)/include/mk/generic_trunk_target.mk