summaryrefslogtreecommitdiffstats
path: root/tools/cpu/unix/Makefile.am
blob: 65147c0a2be13848888cbf6b45b67ec96c34449b (plain) (blame)
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
#
#  $Id$
#

AUTOMAKE_OPTIONS = foreign
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal

noinst_PROGRAMS=gensize

gensize_SOURCES=gensize.c

# We use files that have not been installed yet.
CPU_DIR=$(srcdir)/../../cpu/$(RTEMS_CPU)

INCLUDES = \
-I$(PROJECT_ROOT)/${RTEMS_BSP}/include \
-I$(CPU_DIR)

# HACK: install into the build-tree
preinstall: install-exec-local

install-exec-local: gensize
	$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
	$(INSTALL_PROGRAM) gensize $(PROJECT_ROOT)/${RTEMS_BSP}/bin

include $(top_srcdir)/../../../../../../automake/local.am