source: rtems/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am @ d58c0ff

4.104.114.84.9
Last change on this file since d58c0ff was d58c0ff, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 31, 2004 at 9:45:36 AM

2004-01-31 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in clock/.cvsignore, console/.cvsignore, irq/.cvsignore, network/.cvsignore, startup/.cvsignore, vectors/.cvsignore. Use automake compilation rules.
  • clock/.cvsignore, console/.cvsignore, irq/.cvsignore, network/.cvsignore, startup/.cvsignore, vectors/.cvsignore: Remove.
  • configure.ac: Reflect changes above.
  • wrapup/Makefile: Reflect changes above.
  • Property mode set to 100644
File size: 5.1 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 = . @exceptions@ wrapup
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14EXTRA_PROGRAMS =
15CLEANFILES =
16noinst_DATA =
17
18include_bspdir = $(includedir)/bsp
19
20include_HEADERS += include/coverhd.h
21
22EXTRA_DIST = start/start.S
23start$(LIB_VARIANT).$(OBJEXT): start/start.S
24        ${CCASCOMPILE} -DASM -o $@ -c $<
25project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
26
27dist_project_lib_DATA += startup/linkcmds
28
29EXTRA_PROGRAMS += pclock.rel
30CLEANFILES += pclock.rel
31pclock_rel_SOURCES = clock/p_clock.c
32pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
33pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34
35EXTRA_PROGRAMS += pclock_g.rel
36CLEANFILES += pclock_g.rel
37pclock_g_rel_SOURCES = $(pclock_rel_SOURCES)
38pclock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
39pclock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41noinst_DATA += pclock$(LIB_VARIANT).rel
42
43EXTRA_PROGRAMS += console.rel
44CLEANFILES += console.rel
45console_rel_SOURCES = console/console.c
46console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49EXTRA_PROGRAMS += console_g.rel
50CLEANFILES += console_g.rel
51console_g_rel_SOURCES = $(console_rel_SOURCES)
52console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
53console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_DATA += console$(LIB_VARIANT).rel
56
57include_bsp_HEADERS = irq/irq.h
58
59EXTRA_PROGRAMS += irq.rel
60CLEANFILES += irq.rel
61irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq.h irq/irq_asm.S
62irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
63irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64
65EXTRA_PROGRAMS += irq_g.rel
66CLEANFILES += irq_g.rel
67irq_g_rel_SOURCES = $(irq_rel_SOURCES)
68irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
69irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
70
71noinst_DATA += irq$(LIB_VARIANT).rel
72
73include_bsp_HEADERS += vectors/vectors.h
74
75EXTRA_PROGRAMS += startup.rel
76CLEANFILES += startup.rel
77startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
78    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
79    ../../shared/main.c ../../shared/sbrk.c \
80    ../../shared/gnatinstallhandler.c startup/cpuinit.c
81startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
82startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84EXTRA_PROGRAMS += startup_g.rel
85CLEANFILES += startup_g.rel
86startup_g_rel_SOURCES = $(startup_rel_SOURCES)
87startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
88startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90noinst_DATA += startup$(LIB_VARIANT).rel
91
92EXTRA_PROGRAMS += vectors.rel
93CLEANFILES += vectors.rel
94vectors_rel_SOURCES = vectors/vectors_init.c vectors/vectors.h \
95    vectors/vectors.S
96
97vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
98vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100EXTRA_PROGRAMS += vectors_g.rel
101CLEANFILES += vectors_g.rel
102vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
103vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
104vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
105
106noinst_DATA += vectors$(LIB_VARIANT).rel
107
108if HAS_NETWORKING
109network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
110EXTRA_PROGRAMS += network.rel
111CLEANFILES += network.rel
112network_rel_SOURCES = network/network.c network/if_hdlcsubr.c
113network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
114    $(network_CPPFLAGS)
115network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
116
117EXTRA_PROGRAMS += network_g.rel
118CLEANFILES += network_g.rel
119network_g_rel_SOURCES = $(network_rel_SOURCES)
120network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
121    $(network_CPPFLAGS)
122network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
123
124noinst_DATA += network$(LIB_VARIANT).rel
125endif
126
127all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
128
129EXTRA_DIST += times
130
131PREINSTALL_DIRS =
132TMPINSTALL_FILES =
133
134$(PROJECT_INCLUDE)/bsp/$(dirstamp):
135        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
136        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
137PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
138
139$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
140        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
141PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
142
143$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
144        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
145TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
146
147$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
148        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
149TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
150
151$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
152        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
153PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
154
155$(PROJECT_INCLUDE)/bsp/vectors.h: vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
157PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
158
159CLEANFILES += $(PREINSTALL_FILES)
160DISTCLEANFILES = $(PREINSTALL_DIRS)
161CLEANFILES += $(TMPINSTALL_FILES)
162
163include $(top_srcdir)/../../../../automake/subdirs.am
164include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.