source: rtems/c/src/lib/libbsp/mips/jmr3904/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.6 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
18
19nodist_include_HEADERS = include/bspopts.h
20DISTCLEANFILES = include/bspopts.h
21
22noinst_PROGRAMS =
23
24nodist_include_HEADERS += ../../shared/include/coverhd.h
25
26EXTRA_DIST = start/start.S start/regs.S
27start.$(OBJEXT): start/start.S
28        $(CPPASCOMPILE) -DASM -o $@ -c $<
29project_lib_DATA = start.$(OBJEXT)
30
31dist_project_lib_DATA += startup/linkcmds
32
33noinst_PROGRAMS += clock.rel
34clock_rel_SOURCES = clock/clockdrv.c
35clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
36clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
37
38noinst_PROGRAMS += console.rel
39console_rel_SOURCES = console/console-io.c ../../shared/console-polled.c
40console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
41console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43noinst_PROGRAMS += startup.rel
44startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
45    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
46    ../../shared/main.c ../../shared/sbrk.c \
47    ../../shared/gnatinstallhandler.c ../../shared/setvec.c
48startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
49startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
50
51noinst_PROGRAMS += timer.rel
52timer_rel_SOURCES = timer/timer.c
53timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
54timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
55
56noinst_LIBRARIES = libbsp.a
57libbsp_a_SOURCES =
58libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
59libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache.rel \
60    ../../../libcpu/mips/shared/interrupts.rel \
61    ../../../libcpu/mips/tx39/vectorisrs.rel
62
63all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
64
65PREINSTALL_DIRS =
66PREINSTALL_FILES =
67TMPINSTALL_FILES =
68
69$(PROJECT_INCLUDE)/$(dirstamp):
70        @$(mkdir_p) $(PROJECT_INCLUDE)
71        @: > $(PROJECT_INCLUDE)/$(dirstamp)
72PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
73
74$(PROJECT_LIB)/$(dirstamp):
75        @$(mkdir_p) $(PROJECT_LIB)
76        @: > $(PROJECT_LIB)/$(dirstamp)
77PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
78
79$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
81PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
82
83$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
86
87$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
90
91$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
94
95$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
97PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
98
99$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
101TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
102
103$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
105PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
106
107CLEANFILES = $(PREINSTALL_FILES)
108DISTCLEANFILES += $(PREINSTALL_DIRS)
109CLEANFILES += $(TMPINSTALL_FILES)
110
111include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.