Changeset a748603 in rtems
- Timestamp:
- 05/14/17 01:52:52 (7 years ago)
- Branches:
- 5, master
- Children:
- ff781cc
- Parents:
- 86ae03c
- git-author:
- Chris Johns <chrisj@…> (05/14/17 01:52:52)
- git-committer:
- Chris Johns <chrisj@…> (05/24/17 09:59:22)
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
c/Makefile.am
r86ae03c ra748603 12 12 13 13 ## Let all RTEMS' make targets depend on ${RTEMS_BSP} 14 all-local: $ {RTEMS_BSP}15 preinstall-am: $ {RTEMS_BSP}14 all-local: $(RTEMS_BSP) 15 preinstall-am: $(RTEMS_BSP) 16 16 17 17 ## Pull in extra files intro the distribution -
c/src/Makefile.am
r86ae03c ra748603 1 1 ACLOCAL_AMFLAGS = -I aclocal 2 2 3 SUBDIRS = . @BSP_SUBDIRS@3 _SUBDIRS = . @BSP_SUBDIRS@ 4 4 DIST_SUBDIRS = @BSP_SUBDIRS@ 5 5 -
c/src/automake/subdirs.am
r86ae03c ra748603 1 ## Borrowed from automake-1.4 and adapted to RTEMS1 ## Copyright 2017 Chris Johns <chrisj@rtems.org> 2 2 3 ## NOTE: This is a temporary work-around to keep 4 ## RTEMS's non automake standard make targets working. 5 ## Once automake is fully integrated these make targets 6 ## and this file will probably be removed 3 ## 4 ## The following builds in parallel. The subdirectories are 5 ## expanded into separate rules and all the targets are listed 6 ## and make runs as many as it can. 7 ## 8 ## A macro is defined and evaluated once for each directory. This 9 ## creates the instance of the rule. Use $(info ...) to print them. 10 ## 7 11 8 preinstall-recursive: 9 @set fnord $(MAKEFLAGS); amf=$$2; \ 10 dot_seen=no; \ 11 target=`echo $@ | sed s/-recursive//`; \ 12 list='$(SUBDIRS)'; for subdir in $$list; do \ 13 echo "Making $$target in $$subdir"; \ 14 if test "$$subdir" = "."; then \ 15 dot_seen=yes; \ 16 local_target="$$target-am"; \ 17 else \ 18 local_target="$$target"; \ 19 fi; \ 20 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 21 ## This trick allows "-k" to keep its natural meaning when running a 22 ## recursive rule. 23 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 24 done; \ 25 if test "$$dot_seen" = "no"; then \ 26 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 27 fi; test -z "$$fail" 12 SUBDIRS_dot = $(filter .,$(_SUBDIRS)) 13 SUBDIRS_no_dot = $(filter-out .,$(_SUBDIRS)) 14 SUBDIRS_no_dot_no_wrapup = $(filter-out wrapup,$(SUBDIRS_no_dot)) 15 SUBDIRS_no_dot_no_testsuites = $(filter-out testsuites,$(SUBDIRS_no_dot)) 16 SUBDIRS_no_dot_no_wrapup_no_testsuites = $(filter-out testsuites,$(SUBDIRS_no_dot_no_wrapup)) 17 SUBDIRS_wrapup = $(filter wrapup,$(SUBDIRS_no_dot)) 18 SUBDIRS_testsuites = $(filter testsuites,$(SUBDIRS_no_dot)) 28 19 29 preinstall: preinstall-recursive 30 .PHONY: preinstall-recursive 20 SUBDIR_TARGET = $(subst /,-,$1) 21 PREINSTALL_TARGET = preinstall-$(call SUBDIR_TARGET,$(1)) 22 23 preintstall_targets = $(if "$(SUBDIRS_dot)" ".",preinstall-dot) $(foreach D,$(SUBDIRS_no_dot),$(call PREINSTALL_TARGET,$(D))) 24 25 define PREINSTALL_DIR 26 .PHONY: $1 27 $1: 28 @+set fnord $(MAKEFLAGS); amf=$$$$2; \ 29 subdir=$(2); \ 30 subdir_label=`echo $(1) | sed -e 's/preinstall-//'`; \ 31 target=`echo $$@ | sed -e 's/-recursive//' -e "s/-$$$${subdir_label}//"`$(3); \ 32 echo "Making $$$$target in $$$$subdir"; \ 33 (cd $$$$subdir && $(MAKE) $(AM_MAKEFLAGS) $$$$target) \ 34 || case "$$$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; 35 endef 36 37 $(if "$(SUBDIRS_dot)" ".",$(eval $(call PREINSTALL_DIR,preinstall-dot,.,-am))) 38 39 $(foreach D,$(SUBDIRS_no_dot),$(eval $(call PREINSTALL_DIR,$(call PREINSTALL_TARGET,$(D)),$(D)))) 40 41 preinstall: $(preintstall_targets) 42 .PHONY: preinstall 43 44 define CPUKITDIR 45 .PHONY: $1 46 $1: $(preintstall_targets) 47 @+set fnord $(MAKEFLAGS); amf=$$$$2; \ 48 subdir=$(2); \ 49 target=`echo $(MAKECMDGOALS) | sed s/-recursive//`; \ 50 if test "$$$$target" = "all-local-am"; then \ 51 target="all-am"; \ 52 fi; \ 53 if test "$$$$target" = "all-local"; then \ 54 target="all"; \ 55 fi; \ 56 echo "Making $$$$target in $$$$subdir"; \ 57 if test "$$$$subdir" != "."; then \ 58 cd $$$$subdir; \ 59 $(MAKE) $(AM_MAKEFLAGS) $$$$local_target; \ 60 fi; 61 endef 62 63 # 64 # This GNU make syntax is being used to stop automake thinking the code is for 65 # it. 66 # 67 $(if "$(SUBDIRS_dot)" ".",$(eval $(call CPUKITDIR,dot,.))) 68 69 $(foreach D,$(SUBDIRS_no_dot),$(eval $(call CPUKITDIR,$(D),$(D)))) 70 71 # 72 # If there is a wrapup make it depend on all other directories except the 73 # testsuite so it is not entered until everything but the testsuite has 74 # finished. 75 # 76 $(if "$(SUBDIRS_wrapup)" "wrapup",wrapup: dot $(SUBDIRS_no_dot_no_wrapup_no_testsuites)) 77 78 # 79 # If there is a testsuite make it depend on all other directories so it is not 80 # entered until everything else has finished. 81 # 82 $(if "$(SUBDIRS_testsuites)" "testsuites",testsuites: dot $(SUBDIRS_no_dot_no_testsuites)) 83 84 # 85 # The general build all rule for automake. 86 # 87 all-local: preinstall $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot) -
c/src/lib/Makefile.am
r86ae03c ra748603 1 SUBDIRS = libcpu libbsp1 _SUBDIRS = libcpu libbsp 2 2 3 3 include $(top_srcdir)/automake/subdirs.am 4 4 include $(top_srcdir)/automake/local.am 5 6 # 7 # The libsp cannot be built until libcpu is built. 8 # 9 libbsp: libcpu -
c/src/lib/libbsp/Makefile.am
r86ae03c ra748603 1 1 include $(top_srcdir)/automake/compile.am 2 2 3 SUBDIRS = @libbsp_cpu_subdir@3 _SUBDIRS = @libbsp_cpu_subdir@ 4 4 DIST_SUBDIRS = @libbsp_cpu_subdir@ 5 5 … … 43 43 44 44 include $(srcdir)/preinstall.am 45 include $(top_srcdir)/automake/local.am 45 46 include $(top_srcdir)/automake/subdirs.am 46 include $(top_srcdir)/automake/local.am -
c/src/lib/libbsp/arm/Makefile.am
r86ae03c ra748603 4 4 ## Currently, the shared directory is not explicitly 5 5 ## added but it is present in the source tree. 6 SUBDIRS = @RTEMS_BSP_FAMILY@6 _SUBDIRS = @RTEMS_BSP_FAMILY@ 7 7 8 8 include_bspdir = $(includedir)/bsp -
c/src/lib/libbsp/bfin/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/epiphany/Makefile.am
r86ae03c ra748603 3 3 ## Currently, the shared directory is not explicitly 4 4 ## added but it is present in the source tree. 5 SUBDIRS = @RTEMS_BSP_FAMILY@5 _SUBDIRS = @RTEMS_BSP_FAMILY@ 6 6 include $(srcdir)/preinstall.am 7 7 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/i386/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 EXTRA_DIST = -
c/src/lib/libbsp/i386/pc386/Makefile.am
r86ae03c ra748603 24 24 noinst_PROGRAMS = 25 25 26 SUBDIRS = . tools26 _SUBDIRS = . tools 27 27 28 28 nodist_include_bsp_HEADERS += include/bspimpl.h … … 259 259 include $(srcdir)/preinstall.am 260 260 include $(top_srcdir)/../../../../automake/local.am 261 include $(top_srcdir)/../../../../automake/subdirs.am -
c/src/lib/libbsp/lm32/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/m32c/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 EXTRA_DIST = -
c/src/lib/libbsp/m68k/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include_bspdir = $(includedir)/bsp -
c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am
r86ae03c ra748603 14 14 DISTCLEANFILES = include/bspopts.h 15 15 16 SUBDIRS = . tools16 _SUBDIRS = . tools 17 17 18 18 include_HEADERS += include/coverhd.h -
c/src/lib/libbsp/mips/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/moxie/Makefile.am
r86ae03c ra748603 6 6 7 7 # Descend into the @RTEMS_BSP_FAMILY@ directory 8 SUBDIRS = @RTEMS_BSP_FAMILY@8 _SUBDIRS = @RTEMS_BSP_FAMILY@ 9 9 10 10 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/nios2/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/no_cpu/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/or1k/Makefile.am
r86ae03c ra748603 4 4 ## Currently, the shared directory is not explicitly 5 5 ## added but it is present in the source tree. 6 SUBDIRS = @RTEMS_BSP_FAMILY@6 _SUBDIRS = @RTEMS_BSP_FAMILY@ 7 7 8 8 include $(srcdir)/preinstall.am -
c/src/lib/libbsp/powerpc/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 # FIXME: This does not work -
c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
r86ae03c ra748603 1 1 ACLOCAL_AMFLAGS = -I ../../../../aclocal 2 2 3 SUBDIRS= .4 SUBDIRS+= bootloader3 _SUBDIRS = . 4 _SUBDIRS += bootloader 5 5 if QEMU 6 SUBDIRS+= qemu_fakerom6 _SUBDIRS += qemu_fakerom 7 7 endif 8 8 … … 167 167 include $(srcdir)/preinstall.am 168 168 include $(top_srcdir)/../../../../automake/local.am 169 include $(top_srcdir)/../../../../automake/subdirs.am -
c/src/lib/libbsp/sh/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 EXTRA_DIST = -
c/src/lib/libbsp/sparc/Makefile.am
r86ae03c ra748603 2 2 3 3 # Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 EXTRA_DIST = -
c/src/lib/libbsp/sparc64/Makefile.am
r86ae03c ra748603 2 2 3 3 ## Descend into the @RTEMS_BSP_FAMILY@ directory 4 SUBDIRS = @RTEMS_BSP_FAMILY@4 _SUBDIRS = @RTEMS_BSP_FAMILY@ 5 5 6 6 include $(top_srcdir)/../../../automake/subdirs.am -
c/src/lib/libbsp/v850/Makefile.am
r86ae03c ra748603 7 7 ## Currently, the shared directory is not explicitly 8 8 ## added but it is present in the source tree. 9 SUBDIRS = @RTEMS_BSP_FAMILY@9 _SUBDIRS = @RTEMS_BSP_FAMILY@ 10 10 11 11 EXTRA_DIST = -
c/src/lib/libcpu/Makefile.am
r86ae03c ra748603 5 5 EXTRA_DIST += shared/src/cache_manager.c 6 6 7 SUBDIRS = @libcpu_cpu_subdir@7 _SUBDIRS = @libcpu_cpu_subdir@ 8 8 DIST_SUBDIRS = @libcpu_cpu_subdir@ 9 9 -
cpukit/Makefile.am
r86ae03c ra748603 5 5 6 6 # librtemscpu 7 SUBDIRS = . score rtems sapi posix8 SUBDIRS += dev9 SUBDIRS += dtc/libfdt10 SUBDIRS += libcrypt11 SUBDIRS += libcsupport libblock libfs12 SUBDIRS += libdrvmgr13 SUBDIRS += libnetworking librpc14 SUBDIRS += libpci15 SUBDIRS += libi2c16 SUBDIRS += libmisc17 SUBDIRS += libmd18 SUBDIRS += libgnat19 SUBDIRS += libdl20 SUBDIRS += libstdthreads21 SUBDIRS += libdebugger22 SUBDIRS += wrapup23 24 SUBDIRS += zlib7 _SUBDIRS = . score rtems sapi posix 8 _SUBDIRS += dev 9 _SUBDIRS += dtc/libfdt 10 _SUBDIRS += libcrypt 11 _SUBDIRS += libcsupport libblock libfs 12 _SUBDIRS += libdrvmgr 13 _SUBDIRS += libnetworking librpc 14 _SUBDIRS += libpci 15 _SUBDIRS += libi2c 16 _SUBDIRS += libmisc 17 _SUBDIRS += libmd 18 _SUBDIRS += libgnat 19 _SUBDIRS += libdl 20 _SUBDIRS += libstdthreads 21 _SUBDIRS += libdebugger 22 _SUBDIRS += wrapup 23 24 _SUBDIRS += zlib 25 25 26 26 # applications 27 SUBDIRS += ftpd28 SUBDIRS += telnetd29 SUBDIRS += pppd30 SUBDIRS += mghttpd27 _SUBDIRS += ftpd 28 _SUBDIRS += telnetd 29 _SUBDIRS += pppd 30 _SUBDIRS += mghttpd 31 31 32 32 noinst_DATA = preinstall-stamp -
cpukit/automake/subdirs.am
r86ae03c ra748603 1 ## Borrowed from automake-1.4 and adapted to RTEMS1 ## Copyright 2017 Chris Johns <chrisj@rtems.org> 2 2 3 ## NOTE: This is a temporary work-around to keep 4 ## RTEMS's non automake standard make targets working. 5 ## Once automake is fully integrated these make targets 6 ## and this file will probably be removed 3 ## 4 ## The following builds in parallel. The subdirectories are 5 ## expanded into separate rules and all the targets are listed 6 ## and make runs as many as it can. 7 ## 8 ## A macro is defined and evaluated once for each directory. This 9 ## creates the instance of the rule. Use $(info ...) to print them. 10 ## 7 11 8 preinstall-recursive: 9 @set fnord $(MAKEFLAGS); amf=$$2; \ 10 dot_seen=no; \ 11 target=`echo $@ | sed s/-recursive//`; \ 12 list='$(SUBDIRS)'; for subdir in $$list; do \ 13 echo "Making $$target in $$subdir"; \ 14 if test "$$subdir" = "."; then \ 15 dot_seen=yes; \ 16 local_target="$$target-am"; \ 17 else \ 18 local_target="$$target"; \ 19 fi; \ 20 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 21 ## This trick allows "-k" to keep its natural meaning when running a 22 ## recursive rule. 23 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 24 done; \ 25 if test "$$dot_seen" = "no"; then \ 26 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 27 fi; test -z "$$fail" 12 SUBDIRS_dot = $(filter .,$(_SUBDIRS)) 13 SUBDIRS_no_dot = $(filter-out .,$(_SUBDIRS)) 14 SUBDIRS_no_dot_no_wrapup = $(filter-out wrapup,$(SUBDIRS_no_dot)) 15 SUBDIRS_wrapup = $(filter wrapup,$(SUBDIRS_no_dot)) 28 16 29 preinstall: preinstall-recursive 30 .PHONY: preinstall-recursive 17 SUBDIR_TARGET = $(subst /,-,$1) 18 PREINSTALL_TARGET = preinstall-$(call SUBDIR_TARGET,$(1)) 19 20 preintstall_targets = $(if "$(SUBDIRS_dot)" ".",preinstall-dot) $(foreach D,$(SUBDIRS_no_dot),$(call PREINSTALL_TARGET,$(D))) 21 22 define PREINSTALL_DIR 23 .PHONY: $1 24 $1: 25 @+set fnord $(MAKEFLAGS); amf=$$$$2; \ 26 subdir=$(2); \ 27 subdir_label=`echo $(1) | sed -e 's/preinstall-//'`; \ 28 target=`echo $$@ | sed -e 's/-recursive//' -e "s/-$$$${subdir_label}//"`$(3); \ 29 echo "Making $$$$target in $$$$subdir"; \ 30 (cd $$$$subdir && $(MAKE) $(AM_MAKEFLAGS) $$$$target) \ 31 || case "$$$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; 32 endef 33 34 $(if "$(SUBDIRS_dot)" ".",$(eval $(call PREINSTALL_DIR,preinstall-dot,.,-am))) 35 36 $(foreach D,$(SUBDIRS_no_dot),$(eval $(call PREINSTALL_DIR,$(call PREINSTALL_TARGET,$(D)),$(D)))) 37 38 preinstall: $(preintstall_targets) 39 .PHONY: preinstall 40 41 define CPUKITDIR 42 .PHONY: $1 43 $1: $(preintstall_targets) 44 @+set fnord $(MAKEFLAGS); amf=$$$$2; \ 45 subdir=$(2); \ 46 target=`echo $(MAKECMDGOALS) | sed s/-recursive//`; \ 47 if test "$$$$target" = "all-local-am"; then \ 48 target="all-am"; \ 49 fi; \ 50 if test "$$$$target" = "all-local"; then \ 51 target="all"; \ 52 fi; \ 53 echo "Making $$$$target in $$$$subdir"; \ 54 if test "$$$$subdir" != "."; then \ 55 cd $$$$subdir; \ 56 $(MAKE) $(AM_MAKEFLAGS) $$$$local_target; \ 57 fi; 58 endef 59 60 # 61 # This GNU make syntax is being used to stop automake thinking the code is for 62 # it. 63 # 64 $(if "$(SUBDIRS_dot)" ".",$(eval $(call CPUKITDIR,dot,.))) 65 66 $(foreach D,$(SUBDIRS_no_dot),$(eval $(call CPUKITDIR,$(D),$(D)))) 67 68 # 69 # If there is a wrapup make it depend on all other directories so it is not 70 # entered until they have finished. 71 # 72 $(if "$(SUBDIRS_wrapup)" "wrapup",wrapup: dot $(foreach D,$(SUBDIRS_no_dot_no_wrapup),$(D)),) 73 74 all-local: preinstall $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot) -
cpukit/libfs/Makefile.am
r86ae03c ra748603 2 2 include $(top_srcdir)/automake/compile.am 3 3 4 SUBDIRS = src/nfsclient4 _SUBDIRS = src/nfsclient 5 5 6 6 EXTRA_DIST = README -
cpukit/score/Makefile.am
r86ae03c ra748603 2 2 include $(top_srcdir)/automake/compile.am 3 3 4 SUBDIRS = cpu4 _SUBDIRS = cpu 5 5 6 6 ## include -
cpukit/score/cpu/Makefile.am
r86ae03c ra748603 1 SUBDIRS = @RTEMS_CPU@1 _SUBDIRS = @RTEMS_CPU@ 2 2 3 3 DIST_SUBDIRS =
Note: See TracChangeset
for help on using the changeset viewer.