1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_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 |
---|
9 | SUBDIRS = . tools |
---|
10 | |
---|
11 | include $(top_srcdir)/../../../../automake/compile.am |
---|
12 | include $(top_srcdir)/../../bsp.am |
---|
13 | |
---|
14 | EXTRA_PROGRAMS = |
---|
15 | CLEANFILES = |
---|
16 | noinst_DATA = |
---|
17 | |
---|
18 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
19 | |
---|
20 | EXTRA_DIST = start/start.S start/regs.S |
---|
21 | start$(LIB_VARIANT).$(OBJEXT): start/start.S |
---|
22 | ${CCASCOMPILE} -DASM -o $@ -c $< |
---|
23 | project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT) |
---|
24 | |
---|
25 | dist_project_lib_DATA += startup/linkcmds |
---|
26 | |
---|
27 | EXTRA_PROGRAMS += clock.rel |
---|
28 | CLEANFILES += clock.rel |
---|
29 | clock_rel_SOURCES = clock/clockdrv.c |
---|
30 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
31 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
32 | |
---|
33 | EXTRA_PROGRAMS += clock_g.rel |
---|
34 | CLEANFILES += clock_g.rel |
---|
35 | clock_g_rel_SOURCES = $(clock_rel_SOURCES) |
---|
36 | clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
37 | clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
38 | |
---|
39 | noinst_DATA += clock$(LIB_VARIANT).rel |
---|
40 | |
---|
41 | EXTRA_PROGRAMS += console.rel |
---|
42 | CLEANFILES += console.rel |
---|
43 | console_rel_SOURCES = console/console-io.c ../../shared/console-polled.c |
---|
44 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
45 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
46 | |
---|
47 | EXTRA_PROGRAMS += console_g.rel |
---|
48 | CLEANFILES += console_g.rel |
---|
49 | console_g_rel_SOURCES = $(console_rel_SOURCES) |
---|
50 | console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
51 | console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
52 | |
---|
53 | noinst_DATA += console$(LIB_VARIANT).rel |
---|
54 | |
---|
55 | EXTRA_PROGRAMS += startup.rel |
---|
56 | CLEANFILES += startup.rel |
---|
57 | startup_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 |
---|
61 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
62 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
63 | |
---|
64 | EXTRA_PROGRAMS += startup_g.rel |
---|
65 | CLEANFILES += startup_g.rel |
---|
66 | startup_g_rel_SOURCES = $(startup_rel_SOURCES) |
---|
67 | startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
68 | startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
69 | |
---|
70 | noinst_DATA += startup$(LIB_VARIANT).rel |
---|
71 | |
---|
72 | EXTRA_PROGRAMS += timer.rel |
---|
73 | CLEANFILES += timer.rel |
---|
74 | timer_rel_SOURCES = timer/timer.c |
---|
75 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
76 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
77 | |
---|
78 | EXTRA_PROGRAMS += timer_g.rel |
---|
79 | CLEANFILES += timer_g.rel |
---|
80 | timer_g_rel_SOURCES = $(timer_rel_SOURCES) |
---|
81 | timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
82 | timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
83 | |
---|
84 | noinst_DATA += timer$(LIB_VARIANT).rel |
---|
85 | |
---|
86 | EXTRA_LIBRARIES = libbsp.a |
---|
87 | CLEANFILES += libbsp.a |
---|
88 | libbsp_a_SOURCES = |
---|
89 | libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \ |
---|
90 | console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel |
---|
91 | libbsp_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 | |
---|
95 | EXTRA_LIBRARIES += libbsp_g.a |
---|
96 | CLEANFILES += libbsp_g.a |
---|
97 | libbsp_g_a_SOURCES = $(libbsp_a_SOURCES) |
---|
98 | libbsp_g_a_LIBADD = $(libbsp_a_LIBADD) |
---|
99 | |
---|
100 | noinst_DATA += libbsp$(LIB_VARIANT).a |
---|
101 | |
---|
102 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
103 | |
---|
104 | PREINSTALL_DIRS = |
---|
105 | TMPINSTALL_FILES = |
---|
106 | |
---|
107 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
108 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
109 | PREINSTALL_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) |
---|
113 | TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) |
---|
114 | |
---|
115 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
116 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
117 | TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
118 | |
---|
119 | CLEANFILES += $(PREINSTALL_FILES) |
---|
120 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
121 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
122 | |
---|
123 | include $(top_srcdir)/../../../../automake/local.am |
---|