blob: 9527b5569d3c6d0b2f9fd63064bdb3b4f7dcda76 [file] [log] [blame]
#
# realtime test suite Makefile.
#
# Copyright (C) 2009, Cisco Systems Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Garrett Cooper, September 2009
#
top_srcdir ?= ../..
# Override these variables to use non-system available tools.
ACLOCAL ?= aclocal
AUTOCONF ?= autoconf
AUTOHEADER ?= autoheader
AUTOMAKE ?= automake
include $(top_srcdir)/include/mk/env_pre.mk
include $(abs_srcdir)/config.mk
LIBDIR := lib
FILTER_OUT_DIRS := $(LIBDIR)
LIB := $(LIBDIR)/librealtime.a
# START autotools junk
AUTOGENERATED_FILES = \
m4/Makefile
AUTOMAKE_FILES := config.guess config.sub install-sh missing stamp-h1
.PHONY: autotools aclocal autoconf autoheader automake
autotools: aclocal autoconf autoheader automake
.PHONY: ac-clean ac-distclean ac-maintainer-clean
ac-clean::
$(RM) -rf autom4te.cache
$(RM) -f aclocal.m4 config.log config.status
$(RM) -f include/realtime_config.h include/realtime_config.h.in include/stamp-h1
ac-distclean:: ac-clean
ac-maintainer-clean:: ac-distclean
$(RM) -f aclocal.m4 configure $(AUTOMAKE_FILES) m4/Makefile.in
aclocal:
$(ACLOCAL) -I $(abs_srcdir)/m4
autoconf:
$(AUTOCONF)
autoheader:
$(AUTOHEADER)
autoconf: configure
include/realtime_config.h.in: configure.in $(wildcard m4/*.m4)
$(AUTOHEADER)
touch $@
configure: configure.in aclocal.m4
$(AUTOCONF)
automake: aclocal $(AUTOMAKE_FILES)
$(AUTOMAKE_FILES): m4/Makefile.in
m4/Makefile.in: m4/Makefile.am
$(AUTOMAKE) -c -a
.PHONY: autoheader
autoheader: include/realtime_config.h.in
distclean:: %: clean ac-distclean
$(RM) -f $(AUTOGENERATED_FILES)
maintainer-clean:: distclean ac-maintainer-clean
$(AUTOGENERATED_FILES): $(top_builddir)/config.status
$(SHELL) $^
# END autotools junk
$(LIBDIR):
mkdir -p "$@"
$(LIB): $(LIBDIR)
$(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" all
trunk-all: $(LIB)
trunk-clean:: | lib-clean
lib-clean:: $(LIBDIR)
$(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" clean
include $(top_srcdir)/include/mk/generic_trunk_target.mk