source: rtems/c/src/lib/libbsp/powerpc/eth_comm/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: 6.3 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 include/canbus.h include/info.h
21include_bsp_HEADERS = include/commproc.h include/8xx_immap.h
22
23EXTRA_DIST = start/start.S
24start$(LIB_VARIANT).$(OBJEXT): start/start.S
25        $(CPPASCOMPILE) -DASM -o $@ -c $<
26project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
27
28dist_project_lib_DATA += startup/linkcmds
29
30EXTRA_PROGRAMS += startup.rel
31CLEANFILES += startup.rel
32startup_rel_SOURCES = startup/bspstart.c startup/cpuinit.c \
33    startup/mmutlbtab.c ../../shared/bootcard.c ../../shared/bsplibc.c \
34    ../../shared/bsppost.c ../../shared/main.c ../../shared/sbrk.c \
35    ../../shared/bspclean.c ../../shared/gnatinstallhandler.c
36startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
37startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39EXTRA_PROGRAMS += startup_g.rel
40CLEANFILES += startup_g.rel
41startup_g_rel_SOURCES = $(startup_rel_SOURCES)
42startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
43startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45noinst_DATA += startup$(LIB_VARIANT).rel
46
47EXTRA_PROGRAMS += canbus.rel
48CLEANFILES += canbus.rel
49canbus_rel_SOURCES = canbus/canbus.c
50canbus_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
51canbus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53EXTRA_PROGRAMS += canbus_g.rel
54CLEANFILES += canbus_g.rel
55canbus_g_rel_SOURCES = $(canbus_rel_SOURCES)
56canbus_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
57canbus_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59noinst_DATA += canbus$(LIB_VARIANT).rel
60
61EXTRA_PROGRAMS += console.rel
62CLEANFILES += console.rel
63console_rel_SOURCES = console/console.c
64console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
65console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
66
67EXTRA_PROGRAMS += console_g.rel
68CLEANFILES += console_g.rel
69console_g_rel_SOURCES = $(console_rel_SOURCES)
70console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
71console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
72
73noinst_DATA += console$(LIB_VARIANT).rel
74
75EXTRA_PROGRAMS += pclock.rel
76CLEANFILES += pclock.rel
77pclock_rel_SOURCES = clock/p_clock.c
78pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
79pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80
81EXTRA_PROGRAMS += pclock_g.rel
82CLEANFILES += pclock_g.rel
83pclock_g_rel_SOURCES = $(pclock_rel_SOURCES)
84pclock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
85pclock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
86
87noinst_DATA += pclock$(LIB_VARIANT).rel
88
89include_bsp_HEADERS += irq/irq.h
90
91EXTRA_PROGRAMS += irq.rel
92CLEANFILES += irq.rel
93irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq_asm.S
94irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
95irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
96
97EXTRA_PROGRAMS += irq_g.rel
98CLEANFILES += irq_g.rel
99irq_g_rel_SOURCES = $(irq_rel_SOURCES)
100irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
101irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
102
103noinst_DATA += irq$(LIB_VARIANT).rel
104
105include_bsp_HEADERS += vectors/vectors.h
106
107EXTRA_PROGRAMS += vectors.rel
108CLEANFILES += vectors.rel
109vectors_rel_SOURCES = vectors/vectors_init.c vectors/vectors.S \
110    vectors/vectors.h
111vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
112vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113
114EXTRA_PROGRAMS += vectors_g.rel
115CLEANFILES += vectors_g.rel
116vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
117vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
118vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
119
120noinst_DATA += vectors$(LIB_VARIANT).rel
121
122if HAS_NETWORKING
123network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
124EXTRA_PROGRAMS += network.rel
125CLEANFILES += network.rel
126network_rel_SOURCES = network/network.c
127network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
128    $(network_CPPFLAGS)
129network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
130
131EXTRA_PROGRAMS += network_g.rel
132CLEANFILES += network_g.rel
133network_g_rel_SOURCES = $(network_rel_SOURCES)
134network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
135    $(network_CPPFLAGS)
136network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
137
138noinst_DATA += network$(LIB_VARIANT).rel
139endif
140
141all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
142
143EXTRA_DIST += times
144
145PREINSTALL_DIRS =
146TMPINSTALL_FILES =
147
148$(PROJECT_INCLUDE)/bsp/$(dirstamp):
149        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
150        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
151PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
152
153$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
156
157$(PROJECT_INCLUDE)/canbus.h: include/canbus.h $(PROJECT_INCLUDE)/$(dirstamp)
158        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/canbus.h
159PREINSTALL_FILES += $(PROJECT_INCLUDE)/canbus.h
160
161$(PROJECT_INCLUDE)/info.h: include/info.h $(PROJECT_INCLUDE)/$(dirstamp)
162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/info.h
163PREINSTALL_FILES += $(PROJECT_INCLUDE)/info.h
164
165$(PROJECT_INCLUDE)/bsp/commproc.h: include/commproc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/commproc.h
167PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/commproc.h
168
169$(PROJECT_INCLUDE)/bsp/8xx_immap.h: include/8xx_immap.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/8xx_immap.h
171PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/8xx_immap.h
172
173$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
174        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
175TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
176
177$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
178        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
179TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
180
181$(PROJECT_INCLUDE)/bsp/irq.h: irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
182        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
183PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
184
185$(PROJECT_INCLUDE)/bsp/vectors.h: vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
186        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
187PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
188
189CLEANFILES += $(PREINSTALL_FILES)
190DISTCLEANFILES = $(PREINSTALL_DIRS)
191CLEANFILES += $(TMPINSTALL_FILES)
192
193include $(top_srcdir)/../../../../automake/subdirs.am
194include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.