source: rtems/c/src/lib/libbsp/powerpc/eth_comm/wrapup/Makefile.in @ b0ac03f4

4.104.114.84.95
Last change on this file since b0ac03f4 was af84b968, checked in by Joel Sherrill <joel.sherrill@…>, on 05/27/99 at 18:53:02

Switched from picking up the .rel for each subdirectory in the
BSP (BSP_PIECES) to picking up the .o files. This should help
reduce the minimum size of an application.

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