source: rtems/c/src/lib/libbsp/mips/jmr3904/Makefile.am @ 3defec6

4.104.114.84.95
Last change on this file since 3defec6 was 3defec6, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 23, 2004 at 4:47:38 AM

2004-04-23 Ralf Corsepius <ralf_corsepius@…>

PR 610/bsps

  • Makefile.am: Add include/tm27.h, Cosmetics.
  • include/tm27.h: Final cosmetics.
  • Property mode set to 100644
File size: 5.0 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 = . tools
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
92EXTRA_LIBRARIES = libbsp.a
93CLEANFILES += libbsp.a
94libbsp_a_SOURCES =
95libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
96    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
97libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache$(LIB_VARIANT).rel \
98    ../../../libcpu/mips/shared/interrupts$(LIB_VARIANT).rel \
99    ../../../libcpu/mips/tx39/vectorisrs$(LIB_VARIANT).rel
100
101EXTRA_LIBRARIES += libbsp_g.a
102CLEANFILES += libbsp_g.a
103libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
104libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
105
106noinst_DATA += libbsp$(LIB_VARIANT).a
107
108all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
109
110PREINSTALL_DIRS =
111PREINSTALL_FILES =
112TMPINSTALL_FILES =
113
114$(PROJECT_INCLUDE)/$(dirstamp):
115        @$(mkdir_p) $(PROJECT_INCLUDE)
116        @: > $(PROJECT_INCLUDE)/$(dirstamp)
117PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
118
119$(PROJECT_LIB)/$(dirstamp):
120        @$(mkdir_p) $(PROJECT_LIB)
121        @: > $(PROJECT_LIB)/$(dirstamp)
122PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
123
124$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
126PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
127
128$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
129        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
130PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
131
132$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
134PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
135
136$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
138PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
139
140$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
142PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
143
144$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
146TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
147
148$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
149        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
150PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
151
152CLEANFILES += $(PREINSTALL_FILES)
153DISTCLEANFILES = $(PREINSTALL_DIRS)
154CLEANFILES += $(TMPINSTALL_FILES)
155
156include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.