forked from Imagelibrary/rtems
> 5) rtems-rc-19990202-1.diff/reorg-install.sh > > reorg-install.sh fixes a Makefile variable name clash of RTEMS > configuration files and automake/autoconf standards. > Until now, RTEMS used $(INSTALL) for install-if-change. Automake and > autoconf use $(INSTALL) for a bsd-compatible install. As > install-if-change and bsd-install are not compatible, I renamed all > references to install-if-changed to $(INSTALL_CHANGED) and used > $(INSTALL) for bsd-install (==automake/autoconf standard). When > automake will be introduced install-if-change will probably be replaced > by $(INSTALL) and therefore will slowly vanish. For the moment, this > patch fixes a very nasty problem which prevents adding any automake file > until now (There are still more).
79 lines
1.8 KiB
Makefile
79 lines
1.8 KiB
Makefile
#
|
|
# top level directory for RTEMS build tree
|
|
#
|
|
# Modified by Jiri to implement autoconf and cygnus one-tree build
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
@SET_MAKE@
|
|
srcdir = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
libdir = @libdir@
|
|
includedir = @includedir@
|
|
target = @target@
|
|
manext = 1
|
|
mandir = @mandir@/man$(manext)
|
|
program_prefix = @program_prefix@
|
|
|
|
export bindir
|
|
|
|
RTEMS_ROOT = @top_srcdir@
|
|
PROJECT_ROOT = @PROJECT_ROOT@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
VPATH=@srcdir@
|
|
|
|
ifeq ($(RTEMS_BSP),)
|
|
RTEMS_BSP = @RTEMS_BSP_LIST@
|
|
endif
|
|
|
|
include $(RTEMS_ROOT)/make/main.cfg
|
|
|
|
MTARGETS = pre_install_src all install $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_all) \
|
|
$(TARGET_VARIANTS:%=%_install) $(TARGET_VARIANTS:%=%_tests) \
|
|
clean_wrapup distclean clean_dirs clean_tools tests clean depend
|
|
|
|
EXIT_CMD = exit 1
|
|
|
|
# Don't pass flags from previous make - especially NOT CFLAGS
|
|
# NOTE: Previous versions overrode MAKEFLAGS, but this also disables
|
|
# a lot of useful features
|
|
# override MAKEFLAGS=
|
|
|
|
$(MTARGETS):
|
|
BASEDIR=`pwd`; \
|
|
for bsp in $(RTEMS_BSP) xxx; \
|
|
do if [ $$bsp != xxx ] ; then \
|
|
cd $$BASEDIR; \
|
|
cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
|
|
$@" ; \
|
|
eval $$cmd || $(EXIT_CMD); \
|
|
fi; done;
|
|
|
|
## Configuration stuff
|
|
|
|
ACLOCAL = aclocal -I aclocal
|
|
AUTOCONF = autoconf
|
|
|
|
ACLOCAL_FILES := $(wildcard $(srcdir)/aclocal/*.m4)
|
|
ACLOCAL_M4 = aclocal.m4
|
|
|
|
$(ACLOCAL_M4): configure.in $(ACLOCAL_FILES)
|
|
-cd $(RTEMS_ROOT) && $(ACLOCAL)
|
|
|
|
Makefile: Makefile.in config.status
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
config.status: $(RTEMS_ROOT)/configure
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(RTEMS_ROOT)/configure: $(RTEMS_ROOT)/configure.in $(ACLOCAL_M4)
|
|
-cd $(RTEMS_ROOT) && $(AUTOCONF)
|
|
|
|
.PRECIOUS: $(ACLOCAL_M4) configure Makefile config.status
|
|
|