blob: a1d85c4e0fb66dea94001847826579da4338665d (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#
# Build the pixelflow bsp by cd'ing into another floss tree and
# building it there.
#
# NOTE: we also jump sideways in rtems tree and install test/support/include
# so that floss tests can use the rtems test structures
#
# $Id$
#
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
subdir = pxfl
RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@
VPATH = @srcdir@
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(RTEMS_ROOT)/make/leaf.cfg
INSTALL_CHANGE = @INSTALL_CHANGE@
mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
INSTALLDIRS = $(PROJECT_INCLUDE)
$(INSTALLDIRS):
@$(mkinstalldirs) $(INSTALLDIRS)
SRCS = $(srcdir)/floss-bsp.h
# HACK alert
# on a 'make -k' we don't want to bomb out of build
EXIT_CMD = true
ifeq (k, $(findstring k, $(MAKEFLAGS)))
EXIT_CMD = true
endif
all install:
@$(ECHO); $(ECHO)
@if [ ! -d $(FLOSS_ROOT) ]; \
then \
$(ECHO) "*** ERROR FLOSS_ROOT ($(FLOSS_ROOT)) points to nonexistent directory"; \
$(ECHO); $(ECHO); \
$(EXIT_CMD); \
fi
@if [ -f $(FLOSS_ROOT)/PURE ]; \
then \
$(ECHO) "*** Assuming $(FLOSS_HOME) up to date since ./PURE exists"; \
else \
cmd="cd $(RTEMS_ROOT)/c/src/tests/support/include; $(MAKE) install"; \
$(ECHO) $$cmd; \
eval $$cmd || $(EXIT_CMD); \
cmd="cd $(FLOSS_ROOT); $(MAKE) $@"; \
$(ECHO) $$cmd; \
eval $$cmd || $(EXIT_CMD); \
fi
@$(ECHO); $(ECHO)
@$(INSTALL_CHANGE) -m 644 $(srcdir)/floss-bsp.h $(PROJECT_INCLUDE)/bsp.h
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|