4.104.114.84.95
Last change
on this file since f7fa7d7 was
674c900,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/10/97 at 16:58:00
|
Modified a lot of files to take a first cut at supporting building from
any directory in the build tree. The only variable which must be set
before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | # |
---|
2 | # Build the pixelflow bsp by cd'ing into another floss tree and |
---|
3 | # building it there. |
---|
4 | # |
---|
5 | # NOTE: we also jump sideways in rtems tree and install test/support/include |
---|
6 | # so that floss tests can use the rtems test structures |
---|
7 | # |
---|
8 | # $Id$ |
---|
9 | # |
---|
10 | |
---|
11 | @SET_MAKE@ |
---|
12 | srcdir = @srcdir@ |
---|
13 | top_srcdir = @top_srcdir@ |
---|
14 | VPATH = @srcdir@ |
---|
15 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
16 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
17 | RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
18 | |
---|
19 | include $(RTEMS_CUSTOM) |
---|
20 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
21 | |
---|
22 | SRCS=$(srcdir)/floss-bsp.h |
---|
23 | |
---|
24 | # HACK alert |
---|
25 | # on a 'make -k' we don't want to bomb out of build |
---|
26 | EXIT_CMD=exit 1 |
---|
27 | ifeq (k, $(findstring k, $(MAKEFLAGS))) |
---|
28 | EXIT_CMD=true |
---|
29 | endif |
---|
30 | |
---|
31 | |
---|
32 | all install:: |
---|
33 | @$(ECHO); $(ECHO) |
---|
34 | @if [ ! -d $(FLOSS_ROOT) ]; \ |
---|
35 | then \ |
---|
36 | $(ECHO) "*** ERROR FLOSS_ROOT ($(FLOSS_ROOT)) points to nonexistent directory"; \ |
---|
37 | $(ECHO); $(ECHO); \ |
---|
38 | $(EXIT_CMD); \ |
---|
39 | fi |
---|
40 | @if [ -f $(FLOSS_ROOT)/PURE ]; \ |
---|
41 | then \ |
---|
42 | $(ECHO) "*** Assuming $(FLOSS_HOME) up to date since ./PURE exists"; \ |
---|
43 | else \ |
---|
44 | cmd="cd $(RTEMS_ROOT)/c/src/tests/support/include; $(MAKE) install"; \ |
---|
45 | $(ECHO) $$cmd; \ |
---|
46 | eval $$cmd || $(EXIT_CMD); \ |
---|
47 | cmd="cd $(FLOSS_ROOT); $(MAKE) $@"; \ |
---|
48 | $(ECHO) $$cmd; \ |
---|
49 | eval $$cmd || $(EXIT_CMD); \ |
---|
50 | fi |
---|
51 | @$(ECHO); $(ECHO) |
---|
52 | $(INSTALL) -m 444 $(srcdir)/floss-bsp.h $(PROJECT_INCLUDE)/bsp.h |
---|
Note: See
TracBrowser
for help on using the repository browser.