source: rtems/c/src/lib/libbsp/mips/csb350/Makefile.am @ cba119c9

4.104.114.84.95
Last change on this file since cba119c9 was 7cde240, checked in by Jay Monkman <jtm@…>, on Feb 25, 2005 at 5:18:07 AM

2005-02-24 Jay Monkman <jtm@…>

  • acinclude.m4: Added csb350 to list of BSPs.
  • csb350/Makefile.am, csb350/README, csb350/bsp_specs, csb350/configure.ac, csb350/times, csb350/clock/clockdrv.c, csb350/console/console-io.c, csb350/include/bsp.h, csb350/include/tm27.h, csb350/network/network.c, csb350/start/regs.S, csb350/start/start.S, csb350/startup/bspclean.c, csb350/startup/bspstart.c, csb350/startup/linkcmds, csb350/timer/timer.c: New BSP.
  • Property mode set to 100644
File size: 5.6 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7# wrapup is the one that actually builds and installs the library
8# from the individual .rel files built in other directories
9SUBDIRS = .
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = bsp_specs
15
16include_HEADERS = include/bsp.h
17include_HEADERS += include/tm27.h
18nodist_include_HEADERS = include/bspopts.h
19
20EXTRA_PROGRAMS =
21CLEANFILES =
22noinst_DATA =
23
24nodist_include_HEADERS += ../../shared/include/coverhd.h
25
26EXTRA_DIST = start/start.S start/regs.S
27start$(LIB_VARIANT).$(OBJEXT): start/start.S
28        $(CPPASCOMPILE) -DASM -o $@ -c $<
29project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
30
31dist_project_lib_DATA += startup/linkcmds
32
33EXTRA_PROGRAMS += clock.rel
34CLEANFILES += clock.rel
35clock_rel_SOURCES = clock/clockdrv.c
36clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
37clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39EXTRA_PROGRAMS += clock_g.rel
40CLEANFILES += clock_g.rel
41clock_g_rel_SOURCES = $(clock_rel_SOURCES)
42clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
43clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45noinst_DATA += clock$(LIB_VARIANT).rel
46
47EXTRA_PROGRAMS += console.rel
48CLEANFILES += console.rel
49console_rel_SOURCES = console/console-io.c ../../shared/console-polled.c
50console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
51console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53EXTRA_PROGRAMS += console_g.rel
54CLEANFILES += console_g.rel
55console_g_rel_SOURCES = $(console_rel_SOURCES)
56console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
57console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59noinst_DATA += console$(LIB_VARIANT).rel
60
61EXTRA_PROGRAMS += startup.rel
62CLEANFILES += startup.rel
63startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
64    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
65    ../../shared/main.c ../../shared/sbrk.c \
66    ../../shared/gnatinstallhandler.c ../../shared/setvec.c
67startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
68startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
69
70EXTRA_PROGRAMS += startup_g.rel
71CLEANFILES += startup_g.rel
72startup_g_rel_SOURCES = $(startup_rel_SOURCES)
73startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
74startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
75
76noinst_DATA += startup$(LIB_VARIANT).rel
77
78EXTRA_PROGRAMS += timer.rel
79CLEANFILES += timer.rel
80timer_rel_SOURCES = timer/timer.c
81timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
82timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84EXTRA_PROGRAMS += timer_g.rel
85CLEANFILES += timer_g.rel
86timer_g_rel_SOURCES = $(timer_rel_SOURCES)
87timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
88timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90noinst_DATA += timer$(LIB_VARIANT).rel
91
92if HAS_NETWORKING
93network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
94EXTRA_PROGRAMS += network.rel
95CLEANFILES += network.rel
96network_rel_SOURCES = network/network.c
97network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
98    $(network_CPPFLAGS)
99network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
100
101EXTRA_PROGRAMS += network_g.rel
102CLEANFILES += network_g.rel
103network_g_rel_SOURCES = $(network_rel_SOURCES)
104network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
105    $(network_CPPFLAGS)
106network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
107
108noinst_DATA += network$(LIB_VARIANT).rel
109endif
110
111EXTRA_LIBRARIES = libbsp.a
112CLEANFILES += libbsp.a
113libbsp_a_SOURCES =
114libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
115    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
116if HAS_NETWORKING
117libbsp_a_LIBADD += network$(LIB_VARIANT).rel
118endif
119libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache$(LIB_VARIANT).rel \
120    ../../../libcpu/mips/shared/interrupts$(LIB_VARIANT).rel \
121    ../../../libcpu/mips/au1x00/vectorisrs$(LIB_VARIANT).rel
122
123EXTRA_LIBRARIES += libbsp_g.a
124CLEANFILES += libbsp_g.a
125libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
126libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
127
128noinst_DATA += libbsp$(LIB_VARIANT).a
129
130all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
131
132PREINSTALL_DIRS =
133PREINSTALL_FILES =
134TMPINSTALL_FILES =
135
136$(PROJECT_INCLUDE)/$(dirstamp):
137        @$(mkdir_p) $(PROJECT_INCLUDE)
138        @: > $(PROJECT_INCLUDE)/$(dirstamp)
139PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
140
141$(PROJECT_LIB)/$(dirstamp):
142        @$(mkdir_p) $(PROJECT_LIB)
143        @: > $(PROJECT_LIB)/$(dirstamp)
144PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
145
146$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
147        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
148PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
149
150$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
151        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
152PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
153
154$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
155        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
156PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
157
158$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
159        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
160PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
161
162$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
163        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
164PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
165
166$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
167        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
168TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
169
170$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
171        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
172PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
173
174CLEANFILES += $(PREINSTALL_FILES)
175DISTCLEANFILES = $(PREINSTALL_DIRS)
176CLEANFILES += $(TMPINSTALL_FILES)
177
178include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.