1 | ## |
---|
2 | ## Makefile.am,v 1.8.4.1 2003/02/20 21:55:34 joel Exp |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | dist_project_lib_DATA = bsp_specs |
---|
11 | |
---|
12 | include_HEADERS = include/bsp.h |
---|
13 | include_HEADERS += include/tm27.h |
---|
14 | |
---|
15 | nodist_include_HEADERS = include/bspopts.h |
---|
16 | DISTCLEANFILES = include/bspopts.h |
---|
17 | nodist_include_HEADERS += ../../shared/include/coverhd.h |
---|
18 | |
---|
19 | noinst_PROGRAMS = |
---|
20 | |
---|
21 | include_bspdir = $(includedir)/bsp |
---|
22 | |
---|
23 | ### |
---|
24 | dist_project_lib_DATA += startup/linkcmds |
---|
25 | |
---|
26 | noinst_PROGRAMS += startup.rel |
---|
27 | startup_rel_SOURCES = startup/bspstart.c \ |
---|
28 | ../../shared/bootcard.c ../../shared/main.c ../../shared/bsppost.c \ |
---|
29 | ../../shared/bsplibc.c ../../powerpc/shared/startup/sbrk.c \ |
---|
30 | ../../shared/bspclean.c ../../shared/gnatinstallhandler.c \ |
---|
31 | ../../powerpc/shared/startup/pgtbl_setup.c \ |
---|
32 | ../../powerpc/shared/startup/pgtbl_activate.c |
---|
33 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
34 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
35 | |
---|
36 | ### |
---|
37 | noinst_PROGRAMS += pclock.rel |
---|
38 | pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
39 | pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
40 | pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
41 | |
---|
42 | ### |
---|
43 | include_bsp_HEADERS = ../../powerpc/shared/console/uart.h \ |
---|
44 | ../../powerpc/shared/console/consoleIo.h \ |
---|
45 | ../../powerpc/shared/motorola/motorola.h \ |
---|
46 | ../../powerpc/shared/residual/residual.h \ |
---|
47 | ../../powerpc/shared/residual/pnp.h \ |
---|
48 | ../../powerpc/shared/console/consoleIo.h \ |
---|
49 | console/rsPMCQ1.h |
---|
50 | |
---|
51 | noinst_PROGRAMS += console.rel |
---|
52 | console_rel_SOURCES = console/console.c \ |
---|
53 | console/ns16550cfg.c console/mc68360_scc.c console/rsPMCQ1.c \ |
---|
54 | console/alloc360.c console/init68360.c |
---|
55 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
56 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
57 | ### |
---|
58 | include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h |
---|
59 | |
---|
60 | noinst_PROGRAMS += openpic.rel |
---|
61 | openpic_rel_SOURCES = ../../powerpc/shared/openpic/openpic.h \ |
---|
62 | ../../powerpc/shared/openpic/openpic.c |
---|
63 | |
---|
64 | openpic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
65 | openpic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
66 | |
---|
67 | ### |
---|
68 | include_bsp_HEADERS += ../../powerpc/shared/pci/pci.h |
---|
69 | |
---|
70 | noinst_PROGRAMS += pci.rel |
---|
71 | pci_rel_SOURCES = pci/no_host_bridge.c ../../powerpc/shared/pci/pci.c \ |
---|
72 | ../../powerpc/shared/pci/pcifinddevice.c |
---|
73 | pci_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
74 | pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
75 | |
---|
76 | ### |
---|
77 | include_bsp_HEADERS += ../../powerpc/shared/irq/irq.h |
---|
78 | |
---|
79 | noinst_PROGRAMS += irq.rel |
---|
80 | irq_rel_SOURCES = irq/irq_init.c irq/irq.c \ |
---|
81 | ../../powerpc/shared/irq/i8259.c \ |
---|
82 | ../../powerpc/shared/irq/irq_asm.S |
---|
83 | irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
84 | irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
85 | |
---|
86 | ## |
---|
87 | include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h |
---|
88 | |
---|
89 | noinst_PROGRAMS += vectors.rel |
---|
90 | vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors_init.c \ |
---|
91 | ../../powerpc/shared/vectors/vectors.S |
---|
92 | vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
93 | vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
94 | |
---|
95 | ## |
---|
96 | include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \ |
---|
97 | ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h |
---|
98 | |
---|
99 | noinst_PROGRAMS += vme.rel |
---|
100 | vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \ |
---|
101 | vme/vmeconfig.c |
---|
102 | vme_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
103 | vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
104 | |
---|
105 | ## |
---|
106 | |
---|
107 | EXTRA_DIST = start/start.S |
---|
108 | start.$(OBJEXT): start/start.S |
---|
109 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
110 | project_lib_DATA = start.$(OBJEXT) |
---|
111 | |
---|
112 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
113 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
114 | $(CPPASCOMPILE) -DASM -o $@ -c $< |
---|
115 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
116 | |
---|
117 | noinst_LIBRARIES = libbsp.a |
---|
118 | libbsp_a_SOURCES = |
---|
119 | libbsp_a_LIBADD = pclock.rel console.rel irq.rel openpic.rel \ |
---|
120 | pci.rel vectors.rel startup.rel vme.rel |
---|
121 | if HAS_NETWORKING |
---|
122 | endif |
---|
123 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
124 | ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \ |
---|
125 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
126 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \ |
---|
127 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \ |
---|
128 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
129 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel |
---|
130 | |
---|
131 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
132 | |
---|
133 | ### |
---|
134 | |
---|
135 | PREINSTALL_DIRS = |
---|
136 | PREINSTALL_FILES = |
---|
137 | TMPINSTALL_FILES = |
---|
138 | |
---|
139 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
140 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
141 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
142 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
143 | |
---|
144 | $(PROJECT_LIB)/$(dirstamp): |
---|
145 | @$(mkdir_p) $(PROJECT_LIB) |
---|
146 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
147 | PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) |
---|
148 | |
---|
149 | $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp) |
---|
150 | $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs |
---|
151 | PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs |
---|
152 | |
---|
153 | $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
154 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h |
---|
155 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h |
---|
156 | |
---|
157 | $(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
158 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h |
---|
159 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h |
---|
160 | |
---|
161 | $(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
162 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h |
---|
163 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h |
---|
164 | |
---|
165 | $(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
166 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h |
---|
167 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h |
---|
168 | |
---|
169 | $(PROJECT_INCLUDE)/bsp/$(dirstamp): |
---|
170 | @$(mkdir_p) $(PROJECT_INCLUDE)/bsp |
---|
171 | @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
172 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
173 | |
---|
174 | $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) |
---|
175 | $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds |
---|
176 | PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds |
---|
177 | |
---|
178 | $(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
179 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
180 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h |
---|
181 | |
---|
182 | $(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
183 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h |
---|
184 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h |
---|
185 | |
---|
186 | $(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
187 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
188 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h |
---|
189 | |
---|
190 | $(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
191 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
192 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h |
---|
193 | |
---|
194 | $(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
195 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h |
---|
196 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h |
---|
197 | |
---|
198 | $(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
199 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h |
---|
200 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h |
---|
201 | |
---|
202 | $(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
203 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
204 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h |
---|
205 | |
---|
206 | $(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
207 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h |
---|
208 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h |
---|
209 | |
---|
210 | $(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
211 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
212 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h |
---|
213 | |
---|
214 | $(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
215 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
216 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h |
---|
217 | |
---|
218 | $(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
219 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
220 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h |
---|
221 | |
---|
222 | $(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp) |
---|
223 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h |
---|
224 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h |
---|
225 | |
---|
226 | if HAS_NETWORKING |
---|
227 | endif |
---|
228 | |
---|
229 | $(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
230 | $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
231 | TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT) |
---|
232 | |
---|
233 | $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) |
---|
234 | $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT) |
---|
235 | TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT) |
---|
236 | |
---|
237 | CLEANFILES = $(PREINSTALL_FILES) |
---|
238 | DISTCLEANFILES += $(PREINSTALL_DIRS) |
---|
239 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
240 | |
---|
241 | include $(top_srcdir)/../../../../automake/subdirs.am |
---|
242 | include $(top_srcdir)/../../../../automake/local.am |
---|