source: rtems/c/src/lib/libbsp/mips/jmr3904/Makefile.am @ 433d408

4.104.114.84.9
Last change on this file since 433d408 was 433d408, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 31, 2004 at 3:27:43 PM

2004-01-31 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am, start/Makefile.am, startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am. Use automake compilation rules.
  • clock/Makefile.am, console/Makefile.am, start/Makefile.am, startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am: Remove.
  • configure.ac: Reflect changes above.
  • Property mode set to 100644
File size: 3.9 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
14EXTRA_PROGRAMS =
15CLEANFILES =
16noinst_DATA =
17
18nodist_include_HEADERS += ../../shared/include/coverhd.h
19
20EXTRA_DIST = start/start.S start/regs.S
21start$(LIB_VARIANT).$(OBJEXT): start/start.S
22        ${CCASCOMPILE} -DASM -o $@ -c $<
23project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
24
25dist_project_lib_DATA += startup/linkcmds
26
27EXTRA_PROGRAMS += clock.rel
28CLEANFILES += clock.rel
29clock_rel_SOURCES = clock/clockdrv.c
30clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
31clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
32
33EXTRA_PROGRAMS += clock_g.rel
34CLEANFILES += clock_g.rel
35clock_g_rel_SOURCES = $(clock_rel_SOURCES)
36clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
37clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39noinst_DATA += clock$(LIB_VARIANT).rel
40
41EXTRA_PROGRAMS += console.rel
42CLEANFILES += console.rel
43console_rel_SOURCES = console/console-io.c ../../shared/console-polled.c
44console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
45console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47EXTRA_PROGRAMS += console_g.rel
48CLEANFILES += console_g.rel
49console_g_rel_SOURCES = $(console_rel_SOURCES)
50console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
51console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53noinst_DATA += console$(LIB_VARIANT).rel
54
55EXTRA_PROGRAMS += startup.rel
56CLEANFILES += startup.rel
57startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
58    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
59    ../../shared/main.c ../../shared/sbrk.c \
60    ../../shared/gnatinstallhandler.c ../../shared/setvec.c
61startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
62startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64EXTRA_PROGRAMS += startup_g.rel
65CLEANFILES += startup_g.rel
66startup_g_rel_SOURCES = $(startup_rel_SOURCES)
67startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
68startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
69
70noinst_DATA += startup$(LIB_VARIANT).rel
71
72EXTRA_PROGRAMS += timer.rel
73CLEANFILES += timer.rel
74timer_rel_SOURCES = timer/timer.c
75timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
76timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78EXTRA_PROGRAMS += timer_g.rel
79CLEANFILES += timer_g.rel
80timer_g_rel_SOURCES = $(timer_rel_SOURCES)
81timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
82timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84noinst_DATA += timer$(LIB_VARIANT).rel
85
86EXTRA_LIBRARIES = libbsp.a
87CLEANFILES += libbsp.a
88libbsp_a_SOURCES =
89libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
90    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
91libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache$(LIB_VARIANT).rel \
92    ../../../libcpu/mips/shared/interrupts$(LIB_VARIANT).rel \
93    ../../../libcpu/mips/tx39/vectorisrs$(LIB_VARIANT).rel
94
95EXTRA_LIBRARIES += libbsp_g.a
96CLEANFILES += libbsp_g.a
97libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
98libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
99
100noinst_DATA += libbsp$(LIB_VARIANT).a
101
102all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
103
104PREINSTALL_DIRS =
105TMPINSTALL_FILES =
106
107$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
110
111$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
113TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
114
115$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
117TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
118
119CLEANFILES += $(PREINSTALL_FILES)
120DISTCLEANFILES = $(PREINSTALL_DIRS)
121CLEANFILES += $(TMPINSTALL_FILES)
122
123include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.