source: rtems/c/src/lib/libbsp/arm/arm_bare_bsp/Makefile.am @ c24d7c84

4.104.114.84.9
Last change on this file since c24d7c84 was c24d7c84, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2004 at 9:08:05 AM

2004-02-12 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
  • Property mode set to 100644
File size: 4.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7EXTRA_PROGRAMS =
8CLEANFILES =
9noinst_DATA =
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14include_HEADERS += include/registers.h
15
16nodist_include_HEADERS += ../../shared/include/coverhd.h
17
18EXTRA_DIST = start/start.S
19start$(LIB_VARIANT).$(OBJEXT): start/start.S
20        $(CPPASCOMPILE) -DASM -o $@ -c $<
21project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
22
23dist_project_lib_DATA += startup/linkcmds
24
25EXTRA_PROGRAMS += startup.rel
26CLEANFILES += startup.rel
27startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
28    startup/bspstart.c startup/exit.c ../../shared/bootcard.c \
29    ../../shared/main.c ../../shared/sbrk.c \
30    ../../shared/gnatinstallhandler.c
31startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
32startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
33
34EXTRA_PROGRAMS += startup_g.rel
35CLEANFILES += startup_g.rel
36startup_g_rel_SOURCES = $(startup_rel_SOURCES)
37startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
38startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
39
40noinst_DATA += startup$(LIB_VARIANT).rel
41
42EXTRA_PROGRAMS += clock.rel
43CLEANFILES += clock.rel
44clock_rel_SOURCES = clock/clockdrv.c
45clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
46clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48EXTRA_PROGRAMS += clock_g.rel
49CLEANFILES += clock_g.rel
50clock_g_rel_SOURCES = $(clock_rel_SOURCES)
51clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
52clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_DATA += clock$(LIB_VARIANT).rel
55
56EXTRA_PROGRAMS += console.rel
57CLEANFILES += console.rel
58console_rel_SOURCES = ../../arm/shared/comm/uart.c \
59    ../../arm/shared/comm/console.c
60console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
61console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63EXTRA_PROGRAMS += console_g.rel
64CLEANFILES += console_g.rel
65console_g_rel_SOURCES = $(console_rel_SOURCES)
66console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
67console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69noinst_DATA += console$(LIB_VARIANT).rel
70
71EXTRA_PROGRAMS += timer.rel
72CLEANFILES += timer.rel
73timer_rel_SOURCES = ../../shared/timerstub.c
74timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
75timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77EXTRA_PROGRAMS += timer_g.rel
78CLEANFILES += timer_g.rel
79timer_g_rel_SOURCES = $(timer_rel_SOURCES)
80timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
81timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83noinst_DATA += timer$(LIB_VARIANT).rel
84
85include_HEADERS += irq/irq.h
86
87EXTRA_PROGRAMS += irq.rel
88CLEANFILES += irq.rel
89irq_rel_SOURCES = irq/irq.c ../../arm/shared/irq/irq_init.c \
90    irq/bsp_irq_init.c ../../arm/shared/irq/irq_asm.S irq/bsp_irq_asm.S \
91    irq/irq.h
92irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
93irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
94
95EXTRA_PROGRAMS += irq_g.rel
96CLEANFILES += irq_g.rel
97irq_g_rel_SOURCES = $(irq_rel_SOURCES)
98irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
99irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
100
101noinst_DATA += irq$(LIB_VARIANT).rel
102
103EXTRA_LIBRARIES = libbsp.a
104CLEANFILES += libbsp.a
105libbsp_a_SOURCES =
106
107libbsp_a_LIBADD= clock$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \
108    startup$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel irq$(LIB_VARIANT).rel
109
110EXTRA_LIBRARIES += libbsp_g.a
111CLEANFILES += libbsp_g.a
112libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
113libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
114
115noinst_DATA += libbsp$(LIB_VARIANT).a
116
117all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
118
119PREINSTALL_DIRS =
120TMPINSTALL_FILES =
121
122$(PROJECT_INCLUDE)/registers.h: include/registers.h $(PROJECT_INCLUDE)/$(dirstamp)
123        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/registers.h
124PREINSTALL_FILES += $(PROJECT_INCLUDE)/registers.h
125
126$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
127        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
128PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
129
130$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
131        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
132TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
133
134$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
135        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
136TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
137
138$(PROJECT_INCLUDE)/irq.h: irq/irq.h $(PROJECT_INCLUDE)/$(dirstamp)
139        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/irq.h
140PREINSTALL_FILES += $(PROJECT_INCLUDE)/irq.h
141
142CLEANFILES += $(PREINSTALL_FILES)
143DISTCLEANFILES = $(PREINSTALL_DIRS)
144CLEANFILES += $(TMPINSTALL_FILES)
145
146include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.