diff options
Diffstat (limited to 'cpukit/automake')
-rw-r--r-- | cpukit/automake/compile.am | 10 | ||||
-rw-r--r-- | cpukit/automake/local.am | 5 | ||||
-rw-r--r-- | cpukit/automake/multilib.am | 36 | ||||
-rw-r--r-- | cpukit/automake/subdirs.am | 32 |
4 files changed, 83 insertions, 0 deletions
diff --git a/cpukit/automake/compile.am b/cpukit/automake/compile.am new file mode 100644 index 0000000000..1fe10fee5c --- /dev/null +++ b/cpukit/automake/compile.am @@ -0,0 +1,10 @@ +## +## $Id$ +## + +AM_CPPFLAGS = @RTEMS_CPPFLAGS@ +AM_CFLAGS = +AM_CFLAGS += -Werror=overflow +AM_CFLAGS += -Werror=pointer-to-int-cast +AM_CFLAGS += -Werror=int-to-pointer-cast +AM_CCASFLAGS = @RTEMS_CCASFLAGS@ diff --git a/cpukit/automake/local.am b/cpukit/automake/local.am new file mode 100644 index 0000000000..68160311b5 --- /dev/null +++ b/cpukit/automake/local.am @@ -0,0 +1,5 @@ +## $Id$ + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am diff --git a/cpukit/automake/multilib.am b/cpukit/automake/multilib.am new file mode 100644 index 0000000000..9f2024f8d9 --- /dev/null +++ b/cpukit/automake/multilib.am @@ -0,0 +1,36 @@ +## $Id$ + +if MULTILIB +MULTISRCTOP = +MULTIDIRS = +MULTIDO = true +MULTICLEAN = true +endif + +# Multilib support rules +.PHONY: all-multi install-multi mostlyclean-multi clean-multi distclean-multi \ + maintainer-clean-multi + +if MULTILIB +all-recursive: all-multi +install-recursive: install-multi + +mostlyclean-recursive: mostlyclean-multi +clean-recursive: clean-multi +distclean-recursive: distclean-multi +maintainer-clean-recursive: maintainer-clean-multi + +all-multi: + $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do +install-multi: + $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do + +mostlyclean-multi: + $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean +clean-multi: + $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean +distclean-multi: + $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean +maintainer-clean-multi: + $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean +endif diff --git a/cpukit/automake/subdirs.am b/cpukit/automake/subdirs.am new file mode 100644 index 0000000000..61e421f18b --- /dev/null +++ b/cpukit/automake/subdirs.am @@ -0,0 +1,32 @@ +## $Id$ + +## Borrowed from automake-1.4 and adapted to RTEMS + +## NOTE: This is a temporary work-around to keep +## RTEMS's non automake standard make targets working. +## Once automake is fully integrated these make targets +## and this file will probably be removed + +preinstall-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ +## This trick allows "-k" to keep its natural meaning when running a +## recursive rule. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +preinstall: preinstall-recursive +.PHONY: preinstall-recursive |