summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/tools/generic/Makefile.in
blob: d81dfe5ffa21969e400effd4e7a67df8a9b5f4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# $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@
VPATH = @srcdir@
RTEMS_ROOT = @top_srcdir@
PROJECT_ROOT = @PROJECT_ROOT@

INSTALL = @INSTALL@

include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
include $(RTEMS_ROOT)/make/rtems.cfg

DESTDIR=$(PROJECT_RELEASE)/bin

BUILD_PGMS=size_rtems
PGMS=$(BUILD_PGMS)

CLEAN_ADDITIONS += $(BUILD_PGMS)

INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)

all:	$(DESTDIR) $(PGMS) install

$(DESTDIR):
	@top_srcdir@/mkinstalldirs $@

$(INSTALLED_PGMS): $(PGMS)
	$(INSTALL) $(INSTBINFLAGS) $^ $@

install:  $(DESTDIR) $(INSTALLED_PGMS)