1f08c3bdfSopenharmony_ci# 2f08c3bdfSopenharmony_ci# realtime test suite Makefile. 3f08c3bdfSopenharmony_ci# 4f08c3bdfSopenharmony_ci# Copyright (C) 2009, Cisco Systems Inc. 5f08c3bdfSopenharmony_ci# 6f08c3bdfSopenharmony_ci# This program is free software; you can redistribute it and/or modify 7f08c3bdfSopenharmony_ci# it under the terms of the GNU General Public License as published by 8f08c3bdfSopenharmony_ci# the Free Software Foundation; either version 2 of the License, or 9f08c3bdfSopenharmony_ci# (at your option) any later version. 10f08c3bdfSopenharmony_ci# 11f08c3bdfSopenharmony_ci# This program is distributed in the hope that it will be useful, 12f08c3bdfSopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of 13f08c3bdfSopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14f08c3bdfSopenharmony_ci# GNU General Public License for more details. 15f08c3bdfSopenharmony_ci# 16f08c3bdfSopenharmony_ci# You should have received a copy of the GNU General Public License along 17f08c3bdfSopenharmony_ci# with this program; if not, write to the Free Software Foundation, Inc., 18f08c3bdfSopenharmony_ci# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 19f08c3bdfSopenharmony_ci# 20f08c3bdfSopenharmony_ci# Ngie Cooper, September 2009 21f08c3bdfSopenharmony_ci# 22f08c3bdfSopenharmony_ci 23f08c3bdfSopenharmony_citop_srcdir ?= ../.. 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ci# Override these variables to use non-system available tools. 26f08c3bdfSopenharmony_ciACLOCAL ?= aclocal 27f08c3bdfSopenharmony_ciAUTOCONF ?= autoconf 28f08c3bdfSopenharmony_ciAUTOHEADER ?= autoheader 29f08c3bdfSopenharmony_ciAUTOMAKE ?= automake 30f08c3bdfSopenharmony_ci 31f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/env_pre.mk 32f08c3bdfSopenharmony_ci# Ensure that this error / warning only applies for build targets. 33f08c3bdfSopenharmony_ci# 34f08c3bdfSopenharmony_ci# NOTE (garrcoop): this criterium should be in-sync with include/mk/env_pre.mk 35f08c3bdfSopenharmony_ci# (minus help as that's only invoked in the top-level Makefile). 36f08c3bdfSopenharmony_ciifeq ($(filter autotools %clean .gitignore gitignore.%,$(MAKECMDGOALS)),) 37f08c3bdfSopenharmony_ciinclude $(abs_srcdir)/config.mk 38f08c3bdfSopenharmony_ciendif 39f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/gitignore.mk 40f08c3bdfSopenharmony_ci 41f08c3bdfSopenharmony_ciLIBDIR := lib 42f08c3bdfSopenharmony_ciFILTER_OUT_DIRS := $(LIBDIR) m4 43f08c3bdfSopenharmony_ciLIB := $(LIBDIR)/librealtime.a 44f08c3bdfSopenharmony_ci 45f08c3bdfSopenharmony_ci# START autotools junk 46f08c3bdfSopenharmony_ciAUTOGENERATED_FILES = \ 47f08c3bdfSopenharmony_ci m4/Makefile 48f08c3bdfSopenharmony_ci 49f08c3bdfSopenharmony_ciAUTOMAKE_FILES := config.guess config.sub install-sh missing stamp-h1 50f08c3bdfSopenharmony_ci 51f08c3bdfSopenharmony_ci.PHONY: autotools aclocal autoconf autoheader automake 52f08c3bdfSopenharmony_ciautotools: aclocal autoconf autoheader automake 53f08c3bdfSopenharmony_ci 54f08c3bdfSopenharmony_ci.PHONY: ac-clean ac-distclean ac-maintainer-clean 55f08c3bdfSopenharmony_ciac-clean:: 56f08c3bdfSopenharmony_ci $(RM) -rf autom4te.cache 57f08c3bdfSopenharmony_ci $(RM) -f aclocal.m4 config.log config.status 58f08c3bdfSopenharmony_ci $(RM) -f include/realtime_config.h include/stamp-h1 59f08c3bdfSopenharmony_ci 60f08c3bdfSopenharmony_ciac-distclean:: ac-clean 61f08c3bdfSopenharmony_ciac-maintainer-clean:: ac-distclean 62f08c3bdfSopenharmony_ci $(RM) -f aclocal.m4 configure $(AUTOMAKE_FILES) m4/Makefile.in 63f08c3bdfSopenharmony_ci $(RM) -f include/realtime_config.h.in 64f08c3bdfSopenharmony_ci 65f08c3bdfSopenharmony_ciaclocal.m4: 66f08c3bdfSopenharmony_ci $(ACLOCAL) -I $(abs_srcdir)/m4 67f08c3bdfSopenharmony_ci 68f08c3bdfSopenharmony_ciautoconf: configure 69f08c3bdfSopenharmony_ci 70f08c3bdfSopenharmony_ciinclude/realtime_config.h.in: configure.ac $(wildcard m4/*.m4) aclocal.m4 71f08c3bdfSopenharmony_ci $(AUTOHEADER) 72f08c3bdfSopenharmony_ci 73f08c3bdfSopenharmony_ciconfigure: configure.ac aclocal.m4 74f08c3bdfSopenharmony_ci $(AUTOCONF) 75f08c3bdfSopenharmony_ciautomake: $(AUTOMAKE_FILES) 76f08c3bdfSopenharmony_ci$(AUTOMAKE_FILES): m4/Makefile.in 77f08c3bdfSopenharmony_cim4/Makefile.in: m4/Makefile.am aclocal.m4 78f08c3bdfSopenharmony_ci $(AUTOMAKE) -c -a 79f08c3bdfSopenharmony_ci 80f08c3bdfSopenharmony_ci.PHONY: autoheader 81f08c3bdfSopenharmony_ciautoheader: include/realtime_config.h.in 82f08c3bdfSopenharmony_ci $(AUTOHEADER) 83f08c3bdfSopenharmony_ci 84f08c3bdfSopenharmony_cidistclean:: %: clean ac-distclean 85f08c3bdfSopenharmony_ci $(RM) -f $(AUTOGENERATED_FILES) 86f08c3bdfSopenharmony_ci 87f08c3bdfSopenharmony_cimaintainer-clean:: distclean ac-maintainer-clean 88f08c3bdfSopenharmony_ci 89f08c3bdfSopenharmony_ci$(AUTOGENERATED_FILES): $(top_builddir)/config.status 90f08c3bdfSopenharmony_ci $(SHELL) $^ 91f08c3bdfSopenharmony_ci 92f08c3bdfSopenharmony_ci# END autotools junk 93f08c3bdfSopenharmony_ci 94f08c3bdfSopenharmony_ci$(LIBDIR): 95f08c3bdfSopenharmony_ci mkdir -p "$@" 96f08c3bdfSopenharmony_ci 97f08c3bdfSopenharmony_ci$(LIB): $(LIBDIR) 98f08c3bdfSopenharmony_ci $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" all 99f08c3bdfSopenharmony_ci 100f08c3bdfSopenharmony_citrunk-all: $(LIB) 101f08c3bdfSopenharmony_ci 102f08c3bdfSopenharmony_citrunk-clean:: | lib-clean 103f08c3bdfSopenharmony_ci 104f08c3bdfSopenharmony_cilib-clean:: $(LIBDIR) 105f08c3bdfSopenharmony_ci $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" clean 106f08c3bdfSopenharmony_ci 107f08c3bdfSopenharmony_ci# Stub reference for config.mk 108f08c3bdfSopenharmony_ci$(abs_srcdir)/config.mk: 109f08c3bdfSopenharmony_ci $(MAKE) -C $(top_srcdir) help; false 110f08c3bdfSopenharmony_ci 111f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/generic_trunk_target.mk 112