[254b4450] | 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@ |
---|
[d8ff793] | 13 | top_srcdir = @top_srcdir@ |
---|
[53ab4823] | 14 | top_builddir = .. |
---|
| 15 | subdir = pxfl |
---|
[254b4450] | 16 | |
---|
[6693a68] | 17 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 18 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 19 | |
---|
| 20 | VPATH = @srcdir@ |
---|
| 21 | |
---|
[6693a68] | 22 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[cb5bfe4] | 23 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
[254b4450] | 24 | |
---|
[6693a68] | 25 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 26 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
| 27 | |
---|
[ae2ddb8] | 28 | INSTALLDIRS = $(PROJECT_INCLUDE) |
---|
[6693a68] | 29 | |
---|
| 30 | $(INSTALLDIRS): |
---|
| 31 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
| 32 | |
---|
| 33 | SRCS = $(srcdir)/floss-bsp.h |
---|
[254b4450] | 34 | |
---|
| 35 | # HACK alert |
---|
| 36 | # on a 'make -k' we don't want to bomb out of build |
---|
[6693a68] | 37 | EXIT_CMD = true |
---|
[254b4450] | 38 | ifeq (k, $(findstring k, $(MAKEFLAGS))) |
---|
[6693a68] | 39 | EXIT_CMD = true |
---|
| 40 | endif |
---|
[254b4450] | 41 | |
---|
[6693a68] | 42 | all install: |
---|
[254b4450] | 43 | @$(ECHO); $(ECHO) |
---|
| 44 | @if [ ! -d $(FLOSS_ROOT) ]; \ |
---|
| 45 | then \ |
---|
| 46 | $(ECHO) "*** ERROR FLOSS_ROOT ($(FLOSS_ROOT)) points to nonexistent directory"; \ |
---|
| 47 | $(ECHO); $(ECHO); \ |
---|
| 48 | $(EXIT_CMD); \ |
---|
| 49 | fi |
---|
| 50 | @if [ -f $(FLOSS_ROOT)/PURE ]; \ |
---|
| 51 | then \ |
---|
| 52 | $(ECHO) "*** Assuming $(FLOSS_HOME) up to date since ./PURE exists"; \ |
---|
| 53 | else \ |
---|
| 54 | cmd="cd $(RTEMS_ROOT)/c/src/tests/support/include; $(MAKE) install"; \ |
---|
| 55 | $(ECHO) $$cmd; \ |
---|
| 56 | eval $$cmd || $(EXIT_CMD); \ |
---|
| 57 | cmd="cd $(FLOSS_ROOT); $(MAKE) $@"; \ |
---|
| 58 | $(ECHO) $$cmd; \ |
---|
| 59 | eval $$cmd || $(EXIT_CMD); \ |
---|
| 60 | fi |
---|
| 61 | @$(ECHO); $(ECHO) |
---|
[6693a68] | 62 | @$(INSTALL_CHANGE) -m 644 $(srcdir)/floss-bsp.h $(PROJECT_INCLUDE)/bsp.h |
---|
[d8ff793] | 63 | |
---|
[08b5f55] | 64 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 65 | cd $(top_builddir) \ |
---|
| 66 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|