source: rtems/c/src/lib/libbsp/m68k/mcf5206elite/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.8 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
14SUBDIRS = . tools
15
16include_HEADERS += include/coverhd.h
17include_HEADERS += include/i2c.h
18include_HEADERS += include/i2cdrv.h
19include_HEADERS += include/ds1307.h
20include_HEADERS += include/nvram.h
21nodist_include_HEADERS += ../../shared/tod.h
22
23EXTRA_DIST = times
24
25EXTRA_DIST += start/start.S
26start$(LIB_VARIANT).$(OBJEXT): start/start.S
27        $(CPPASCOMPILE) -DASM -o $@ -c $<
28
29project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
30
31dist_project_lib_DATA += startup/linkcmds startup/gdbinit \
32    startup/linkcmds.flash
33
34EXTRA_PROGRAMS += startup.rel
35CLEANFILES += startup.rel
36startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
37    ../../shared/bsppost.c ../../m68k/shared/m68kpretaskinghook.c \
38    startup/bspstart.c startup/init5206e.c ../../shared/bootcard.c \
39    ../../shared/main.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
40    ../../shared/gnatinstallhandler.c
41startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
42startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44EXTRA_PROGRAMS += startup_g.rel
45CLEANFILES += startup_g.rel
46startup_g_rel_SOURCES = $(startup_rel_SOURCES)
47startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
48startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_DATA += startup$(LIB_VARIANT).rel
51
52EXTRA_PROGRAMS += console.rel
53CLEANFILES += console.rel
54console_rel_SOURCES = console/console.c
55console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
56console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58EXTRA_PROGRAMS += console_g.rel
59CLEANFILES += console_g.rel
60console_g_rel_SOURCES = $(console_rel_SOURCES)
61console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
62console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64noinst_DATA += console$(LIB_VARIANT).rel
65
66EXTRA_PROGRAMS += i2c.rel
67CLEANFILES += i2c.rel
68i2c_rel_SOURCES = i2c/i2c.c i2c/i2cdrv.c
69i2c_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
70i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72EXTRA_PROGRAMS += i2c_g.rel
73CLEANFILES += i2c_g.rel
74i2c_g_rel_SOURCES = $(i2c_rel_SOURCES)
75i2c_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
76i2c_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78noinst_DATA += i2c$(LIB_VARIANT).rel
79
80EXTRA_PROGRAMS += tod.rel
81CLEANFILES += tod.rel
82tod_rel_SOURCES = tod/ds1307.c tod/todcfg.c ../../shared/tod.c
83tod_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
84tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
85
86EXTRA_PROGRAMS += tod_g.rel
87CLEANFILES += tod_g.rel
88tod_g_rel_SOURCES = $(tod_rel_SOURCES)
89tod_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
90tod_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
91
92noinst_DATA += tod$(LIB_VARIANT).rel
93
94EXTRA_PROGRAMS += nvram.rel
95CLEANFILES += nvram.rel
96nvram_rel_SOURCES = nvram/nvram.c
97nvram_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
98nvram_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100EXTRA_PROGRAMS += nvram_g.rel
101CLEANFILES += nvram_g.rel
102nvram_g_rel_SOURCES = $(nvram_rel_SOURCES)
103nvram_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
104nvram_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
105
106noinst_DATA += nvram$(LIB_VARIANT).rel
107
108EXTRA_LIBRARIES = libbsp.a
109CLEANFILES += libbsp.a
110libbsp_a_SOURCES =
111libbsp_a_LIBADD = startup$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \
112    i2c$(LIB_VARIANT).rel tod$(LIB_VARIANT).rel nvram$(LIB_VARIANT).rel
113libbsp_a_LIBADD += \
114    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
115    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel \
116    ../../../libcpu/@RTEMS_CPU@/mcf5206/clock$(LIB_VARIANT).rel \
117    ../../../libcpu/@RTEMS_CPU@/mcf5206/mcfuart$(LIB_VARIANT).rel \
118    ../../../libcpu/@RTEMS_CPU@/mcf5206/timer$(LIB_VARIANT).rel \
119    ../../../libcpu/@RTEMS_CPU@/mcf5206/mbus$(LIB_VARIANT).rel
120
121EXTRA_LIBRARIES += libbsp_g.a
122CLEANFILES += libbsp_g.a
123libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
124libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
125
126noinst_DATA += libbsp$(LIB_VARIANT).a
127
128all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
129
130PREINSTALL_DIRS =
131TMPINSTALL_FILES =
132
133$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
134        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
135PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
136
137$(PROJECT_INCLUDE)/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/$(dirstamp)
138        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2c.h
139PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2c.h
140
141$(PROJECT_INCLUDE)/i2cdrv.h: include/i2cdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
142        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2cdrv.h
143PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2cdrv.h
144
145$(PROJECT_INCLUDE)/ds1307.h: include/ds1307.h $(PROJECT_INCLUDE)/$(dirstamp)
146        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ds1307.h
147PREINSTALL_FILES += $(PROJECT_INCLUDE)/ds1307.h
148
149$(PROJECT_INCLUDE)/nvram.h: include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp)
150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h
151PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
152
153$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
156
157$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
158        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
159TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
160
161$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
162        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
163TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
164
165$(PROJECT_LIB)/gdbinit: startup/gdbinit $(PROJECT_LIB)/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_LIB)/gdbinit
167TMPINSTALL_FILES += $(PROJECT_LIB)/gdbinit
168
169$(PROJECT_LIB)/linkcmds.flash: startup/linkcmds.flash $(PROJECT_LIB)/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.flash
171TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.flash
172
173CLEANFILES += $(PREINSTALL_FILES)
174DISTCLEANFILES = $(PREINSTALL_DIRS)
175CLEANFILES += $(TMPINSTALL_FILES)
176
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.