source: rtems/c/src/lib/libbsp/sh/gensh1/wrapup/Makefile.in @ 5906ac5

4.104.114.84.95
Last change on this file since 5906ac5 was 5906ac5, checked in by Joel Sherrill <joel.sherrill@…>, on 03/19/99 at 22:10:04

Towards automake X patch from Ralf Corsepius <corsepiu@…>:

This one once again changes the scheme to preinstall bsp_specs.

It moves generating PROJECT_ROOT/lib/bsp_specs to
libbsp/<cpu>/<bsp>/wrapup/Makefile.in.

I.e. it decentralizes generation of bsp_specs to a bsp-dependent
directory, because preinstalling bsp_specs in a centralized Makefile
like it has been done until now does not harmonize well with spliting
the toplevel configure script in cpu and bsp-dependent configure scripts
and automake.

First apply the patch (rtems-rc-19990318-0.diff) below, then run the
reorg-bsp_specs.sh script.

IMO, this one is comparatively harmless and eases automake support
significantly.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#
2#  $Id$
3#
4#  build and install libbsp
5#
6
7@SET_MAKE@
8srcdir = @srcdir@
9VPATH=@srcdir@
10RTEMS_ROOT = @top_srcdir@
11PROJECT_ROOT = @PROJECT_ROOT@
12
13INSTALL = @INSTALL@
14
15BSP_PIECES=startup scitab
16GENERIC_PIECES=
17
18# pieces to pick up out of libcpu/sh
19CPU_PIECES=\
20        sh7032/null \
21        sh7032/clock \
22        sh7032/console \
23        sh7032/timer
24
25# bummer; have to use $foreach since % pattern subst rules only replace 1x
26OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \
27     $(foreach piece, $(CPU_PIECES), \
28         ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(notdir $(piece)).rel) \
29     $(foreach piece, $(GENERIC_PIECES), ../../../../$(piece)/$(ARCH)/$(piece).rel)
30
31LIB=$(ARCH)/libbsp.a
32
33include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
34include $(RTEMS_ROOT)/make/lib.cfg
35
36#
37# (OPTIONAL) Add local stuff here using +=
38#
39
40DEFINES  +=
41CPPFLAGS +=
42CFLAGS   +=
43
44LD_PATHS  +=
45LD_LIBS   +=
46LDFLAGS   +=
47
48#
49# Add your list of files to delete here.  The config files
50#  already know how to delete some stuff, so you may want
51#  to just run 'make clean' first to see what gets missed.
52#  'make clobber' already includes 'make clean'
53#
54
55CLEAN_ADDITIONS +=
56CLOBBER_ADDITIONS +=
57
58$(LIB): ${OBJS}
59        $(make-library)
60
61all:    ${ARCH} $(SRCS) $(LIB)
62        $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib
63
64install:  all
65
66$(PROJECT_ROOT)/${RTEMS_BSP}/lib/bsp_specs: ../bsp_specs
67        $(INSTALL_DATA) $< $@
68
69preinstall: $(PROJECT_ROOT)/${RTEMS_BSP}/lib/bsp_specs
Note: See TracBrowser for help on using the repository browser.