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