source: rtems/c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in @ f7fa7d7

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@
12srcdir = @srcdir@
13top_srcdir = @top_srcdir@
14VPATH = @srcdir@
15RTEMS_ROOT = @RTEMS_ROOT@
16PROJECT_ROOT = @PROJECT_ROOT@
17RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
18
19include $(RTEMS_CUSTOM)
20include $(PROJECT_ROOT)/make/leaf.cfg
21
22SRCS=$(srcdir)/floss-bsp.h
23
24# HACK alert
25# on a 'make -k' we don't want to bomb out of build
26EXIT_CMD=exit 1
27ifeq (k, $(findstring k, $(MAKEFLAGS)))
28EXIT_CMD=true
29endif
30
31
32all 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.