source: rtems/c/src/lib/libbsp/mips/p4000/Makefile.am @ 7c6c630

4.104.114.84.95
Last change on this file since 7c6c630 was 7c6c630, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 3, 2005 at 4:11:58 AM

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

  • Makefile.am: Remove build-variant support.
  • Property mode set to 100644
File size: 3.4 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
20include_HEADERS += include/coverhd.h
21
22EXTRA_DIST = start/start.S
23start.$(OBJEXT): start/start.S
24        $(CPPASCOMPILE) -DASM -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27dist_project_lib_DATA += startup/linkcmds
28
29noinst_PROGRAMS += startup.rel
30startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
31    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
32    ../../shared/main.c ../../shared/sbrk.c startup/setvec.c \
33    startup/inittlb.c ../../shared/gnatinstallhandler.c startup/idtmem.S \
34    startup/idttlb.S
35startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
36startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
37
38noinst_PROGRAMS += console.rel
39console_rel_SOURCES = console/console.c console/led.S
40console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
41console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43noinst_PROGRAMS += liblnk.rel
44liblnk_rel_SOURCES = liblnk/lnklib.S
45liblnk_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
46liblnk_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48noinst_LIBRARIES = libbsp.a
49libbsp_a_SOURCES =
50libbsp_a_LIBADD = startup.rel console.rel liblnk.rel
51libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache.rel \
52    ../../../libcpu/mips/shared/interrupts.rel \
53    ../../../libcpu/mips/r46xx/clock.rel \
54    ../../../libcpu/mips/r46xx/timer.rel \
55    ../../../libcpu/mips/r46xx/vectorisrs.rel
56
57all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
58
59EXTRA_DIST += times
60
61PREINSTALL_DIRS =
62PREINSTALL_FILES =
63TMPINSTALL_FILES =
64
65$(PROJECT_INCLUDE)/$(dirstamp):
66        @$(mkdir_p) $(PROJECT_INCLUDE)
67        @: > $(PROJECT_INCLUDE)/$(dirstamp)
68PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
69
70$(PROJECT_LIB)/$(dirstamp):
71        @$(mkdir_p) $(PROJECT_LIB)
72        @: > $(PROJECT_LIB)/$(dirstamp)
73PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
74
75$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
76        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
77PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
78
79$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
81PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
82
83$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
86
87$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
90
91$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
94
95$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
97TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
98
99$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
101PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
102
103CLEANFILES = $(PREINSTALL_FILES)
104DISTCLEANFILES += $(PREINSTALL_DIRS)
105CLEANFILES += $(TMPINSTALL_FILES)
106
107include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.