blob: 5aeeaf871fd4a1bae38a56847af96319b0a34948 (
plain) (
tree)
|
|
#
# $Id$
#
# RTEMS build tools
# NOTE: of course we can't use any of these tools
# in this Makefile. Most notably: install-if-change
#
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@
RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_CUSTOM)
include $(RTEMS_ROOT)/make/leaf.cfg
DESTDIR=$(PROJECT_RELEASE)/bin
PGMS=size_rtems
INSTALLED=$(PGMS:%=$(DESTDIR)/%)
all: $(DESTDIR) $(PGMS) install
echo $(DESTDIR)
$(DESTDIR):
[ -d $@ ] || $(MKDIR) $@
install: $(INSTALLED)
# Install the program
$(DESTDIR)/%: %
$(make-script)
|