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

4.104.114.84.95
Last change on this file since cba119c9 was 0e4507b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 16, 2005 at 11:30:31 AM

Cosmetics.

  • Property mode set to 100644
File size: 3.8 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 start/regs.S start/mg5.h
23start.$(OBJEXT): start/start.S
24        $(CPPASCOMPILE) -DASM -o $@ -c $<
25
26project_lib_DATA = start.$(OBJEXT)
27
28dist_project_lib_DATA += startup/linkcmds
29
30startup_CPPFLAGS = -I$(srcdir)/../../mips/shared/gdbstub
31noinst_PROGRAMS += startup.rel
32startup_rel_SOURCES = ../../mips/shared/gdbstub/mips-stub.c \
33    ../../shared/gdbstub/rtems-stub-glue.c ../../shared/bspclean.c \
34    ../../shared/bsplibc.c ../../shared/bsppost.c startup/bspstart.c \
35    ../../shared/bootcard.c ../../shared/main.c ../../shared/sbrk.c \
36    ../../shared/gnatinstallhandler.c ../../shared/setvec.c \
37    startup/gdb-support.c
38startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(startup_CPPFLAGS)
39startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41# FIXME: clockdrv.c and clockdrv_shell.c are structurally flawed
42clock_CPPFLAGS = -I$(srcdir)/../../shared
43EXTRA_DIST += ../../mips/shared/clockdrv_shell.c
44noinst_PROGRAMS += clock.rel
45clock_rel_SOURCES = clock/clockdrv.c
46clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(clock_CPPFLAGS)
47clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_PROGRAMS += console.rel
50console_rel_SOURCES = console/conscfg.c ../../shared/console.c
51console_rel_CPPFLAGS = $(AM_CPPFLAGS)
52console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_PROGRAMS += timer.rel
55timer_rel_SOURCES = timer/timer.c
56timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
57timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59noinst_LIBRARIES = libbsp.a
60libbsp_a_SOURCES =
61libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
62libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
63    ../../../libcpu/@RTEMS_CPU@/shared/interrupts.rel \
64    ../../../libcpu/@RTEMS_CPU@/mongoosev/duart.rel \
65    ../../../libcpu/@RTEMS_CPU@/mongoosev/vectorisrs.rel
66
67all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
68
69PREINSTALL_DIRS =
70PREINSTALL_FILES =
71TMPINSTALL_FILES =
72
73$(PROJECT_INCLUDE)/$(dirstamp):
74        @$(mkdir_p) $(PROJECT_INCLUDE)
75        @: > $(PROJECT_INCLUDE)/$(dirstamp)
76PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
77
78$(PROJECT_LIB)/$(dirstamp):
79        @$(mkdir_p) $(PROJECT_LIB)
80        @: > $(PROJECT_LIB)/$(dirstamp)
81PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
82
83$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
85PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
86
87$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
90
91$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
94
95$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
97PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
98
99$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
102
103$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
105TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
106
107$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
109PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
110
111CLEANFILES = $(PREINSTALL_FILES)
112DISTCLEANFILES += $(PREINSTALL_DIRS)
113CLEANFILES += $(TMPINSTALL_FILES)
114
115include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.