source: rtems/c/src/lib/libbsp/arm/rtl22xx/Makefile.am @ 79a1352

4.104.114.84.9
Last change on this file since 79a1352 was 79a1352, checked in by Joel Sherrill <joel.sherrill@…>, on May 1, 2007 at 8:11:31 PM

2007-05-01 Joel Sherrill <joel@…>

  • Makefile.am: Tinkering to reduce .text size of minimum executable from ~64K to ~47K.
  • Renamed startup/exit.c to startup/bspclean.c
    • startup/bspclean.c: New file.
    • startup/exit.c: Removed.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13include_HEADERS += include/tm27.h
14
15nodist_include_HEADERS = include/bspopts.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20nodist_include_HEADERS += ../../shared/include/coverhd.h
21
22EXTRA_DIST = start/start.S
23start.$(OBJEXT): start/start.S
24        $(CPPASCOMPILE) -DASM -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27dist_project_lib_DATA += startup/linkcmds
28
29noinst_PROGRAMS += startup.rel
30include_HEADERS += ../../arm/shared/comm/uart.h
31startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
32    startup/bspstart.c startup/bspclean.c ../../shared/bootcard.c \
33    ../../shared/sbrk.c \
34    ../../shared/gnatinstallhandler.c
35startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
36startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
37
38noinst_PROGRAMS += gnatsupp.rel
39gnatsupp_rel_SOURCES = ../../sparc/shared/gnatcommon.c
40gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
41gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43
44noinst_PROGRAMS += console.rel
45console_rel_SOURCES = ../../shared/console.c
46console_rel_CPPFLAGS = $(AM_CPPFLAGS)
47console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_PROGRAMS += debugio.rel
50debugio_rel_SOURCES = console/uart.c
51debugio_rel_CPPFLAGS = $(AM_CPPFLAGS)
52debugio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54
55if HAS_NETWORKING
56network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
57noinst_PROGRAMS += network.rel
58network_rel_SOURCES = network/network.c
59network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
60network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61endif
62
63noinst_LIBRARIES = libbsp.a
64libbsp_a_SOURCES =
65libbsp_a_LIBADD =  gnatsupp.rel console.rel debugio.rel
66if HAS_NETWORKING
67libbsp_a_LIBADD += network.rel
68endif
69
70libbsp_a_LIBADD +=  \
71    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \
72    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \
73    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/irq.rel
74
75libbsp_a_LIBADD +=  \
76startup_rel-bootcard.o \
77startup_rel-bspclean.o \
78startup_rel-bsplibc.o \
79startup_rel-bsppost.o \
80startup_rel-bspstart.o \
81startup_rel-sbrk.o
82
83include $(srcdir)/preinstall.am
84include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.