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

4.104.114.84.95
Last change on this file since 844609f9 was 844609f9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/07/05 at 06:57:39

2005-01-07 Ralf Corsepius <ralf.corsepius@…>

  • Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
  • 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) \
39    $(startup_CPPFLAGS)
40startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
41
42# FIXME: clockdrv.c and clockdrv_shell.c are structurally flawed
43clock_CPPFLAGS = -I$(srcdir)/../../shared
44EXTRA_DIST += ../../mips/shared/clockdrv_shell.c
45noinst_PROGRAMS += clock.rel
46clock_rel_SOURCES = clock/clockdrv.c
47clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(clock_CPPFLAGS)
48clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_PROGRAMS += console.rel
51console_rel_SOURCES = console/conscfg.c ../../shared/console.c
52console_rel_CPPFLAGS = $(AM_CPPFLAGS)
53console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_PROGRAMS += timer.rel
56timer_rel_SOURCES = timer/timer.c
57timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
58timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60noinst_LIBRARIES = libbsp.a
61libbsp_a_SOURCES =
62libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
63libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache.rel \
64    ../../../libcpu/mips/shared/interrupts.rel \
65    ../../../libcpu/mips/mongoosev/duart.rel \
66    ../../../libcpu/mips/mongoosev/vectorisrs.rel
67
68all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
69
70PREINSTALL_DIRS =
71PREINSTALL_FILES =
72TMPINSTALL_FILES =
73
74$(PROJECT_INCLUDE)/$(dirstamp):
75        @$(mkdir_p) $(PROJECT_INCLUDE)
76        @: > $(PROJECT_INCLUDE)/$(dirstamp)
77PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
78
79$(PROJECT_LIB)/$(dirstamp):
80        @$(mkdir_p) $(PROJECT_LIB)
81        @: > $(PROJECT_LIB)/$(dirstamp)
82PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
83
84$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
85        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
86PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
87
88$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
89        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
90PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
91
92$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
94PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
95
96$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
99
100$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
101        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
102PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
103
104$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
105        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
106TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
107
108$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
110PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
111
112CLEANFILES = $(PREINSTALL_FILES)
113DISTCLEANFILES += $(PREINSTALL_DIRS)
114CLEANFILES += $(TMPINSTALL_FILES)
115
116include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.