source: rtems/c/src/lib/libbsp/i386/pc386/Makefile.am @ 7e9874b

4.104.114.84.95
Last change on this file since 7e9874b was 7e9874b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2005 at 12:38:54 PM

Cosmetics.

  • Property mode set to 100644
File size: 9.4 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7# FIXME: We must not include *.cfg
8include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
9
10CLEANFILES =
11
12include $(top_srcdir)/../../../../automake/compile.am
13include $(top_srcdir)/../../bsp.am
14
15dist_project_lib_DATA = bsp_specs
16
17include_HEADERS = include/bsp.h
18include_HEADERS += include/tm27.h
19
20nodist_include_HEADERS = include/bspopts.h
21DISTCLEANFILES = include/bspopts.h
22
23noinst_PROGRAMS =
24
25SUBDIRS = . tools
26
27include_bspdir = $(includedir)/bsp
28include_bsp_HEADERS = ../../i386/shared/irq/irq.h \
29    ../../i386/shared/irq/irq_asm.h
30
31include_HEADERS += include/crt.h
32nodist_include_HEADERS += ../../shared/include/coverhd.h
33
34EXTRA_DIST = start/start.S
35start.$(OBJEXT): start/start.S
36        $(CPPASCOMPILE) -DASM -o $@ -c $<
37
38project_lib_DATA = start.$(OBJEXT)
39
40EXTRA_DIST += start/start16.S
41start16.$(OBJEXT): start/start16.S
42        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
43
44start16-elf32.$(OBJEXT): start16.$(OBJEXT)
45        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
46          --oformat=elf32-i386 \
47        -o $@ $<
48
49start16.bin: start16-elf32.$(OBJEXT)
50        $(OBJCOPY) -O binary $< $@
51CLEANFILES += start16.bin
52
53project_lib_DATA += start16.bin
54
55dist_project_lib_DATA += startup/linkcmds
56
57noinst_PROGRAMS += clock.rel
58clock_rel_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c
59clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
60clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61
62include_rtemsdir = $(includedir)/rtems
63include_rtems_HEADERS = console/keyboard.h console/kd.h \
64    console/serial_mouse.h console/ps2_drv.h console/fb_vga.h
65
66noinst_PROGRAMS += console.rel
67include_HEADERS += ../../i386/shared/comm/i386_io.h
68console_rel_SOURCES = console/console.c console/inch.c console/outch.c \
69    console/defkeymap.c console/fb_vga.c console/keyboard.c \
70    console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \
71    console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \
72    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
73console_rel_CPPFLAGS = $(AM_CPPFLAGS)
74console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
75
76noinst_PROGRAMS += gdb.rel
77gdb_rel_SOURCES = ../../i386/shared/comm/i386-stub.c \
78    ../../i386/shared/comm/i386-stub-glue.c \
79    ../../i386/shared/comm/gdb_glue.c
80gdb_rel_CPPFLAGS = $(AM_CPPFLAGS)
81gdb_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83noinst_PROGRAMS += gnat.rel
84gnat_rel_SOURCES = ../../shared/gnatinstallhandler.c
85gnat_rel_CPPFLAGS = $(AM_CPPFLAGS)
86gnat_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
87
88noinst_PROGRAMS += pci.rel
89include_HEADERS += ../../i386/shared/pci/pcibios.h
90pci_rel_SOURCES = ../../i386/shared/pci/pcibios.c ../../i386/shared/pci/pcibios.h
91pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
92pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
93
94noinst_PROGRAMS += startup.rel
95include_HEADERS += ../../i386/shared/comm/uart.h
96startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
97    startup/bspstart.c startup/exit.c ../../i386/shared/irq/idt.c \
98    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
99    ../../shared/bootcard.c ../../shared/main.c ../../shared/sbrk.c \
100    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S
101startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
102startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
103
104noinst_PROGRAMS += timer.rel
105timer_rel_SOURCES = timer/timer.c timer/timerisr.S
106timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
107timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
108
109if HAS_NETWORKING
110ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
111noinst_PROGRAMS += ne2000.rel
112ne2000_rel_SOURCES = ne2000/ne2000.c
113ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
114ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115endif
116
117if HAS_NETWORKING
118# This driver needs to be reworked for the BSD stack.
119# We only install wd80x3.h if HAS_NETWORKING was defined
120include_HEADERS += include/wd80x3.h
121
122wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
123noinst_PROGRAMS += wd8003.rel
124wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
125wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
126wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
127endif
128
129if HAS_NETWORKING
1303c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
131noinst_PROGRAMS += 3c509.rel
1323c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1333c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1343c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
135endif
136
137noinst_PROGRAMS += ide.rel
138ide_rel_SOURCES = ide/idecfg.c ide/ide.c
139ide_rel_CPPFLAGS = $(AM_CPPFLAGS)
140ide_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
141
142noinst_LIBRARIES = libbsp.a
143libbsp_a_SOURCES =
144libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel ide.rel \
145    gdb.rel gnat.rel pci.rel
146# We only build the Network library if HAS_NETWORKING was defined
147# dec21140 is supported via libchip
148if HAS_NETWORKING
149libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
150endif
151libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
152    ../../../libcpu/@RTEMS_CPU@/page.rel \
153    ../../../libcpu/@RTEMS_CPU@/score.rel
154
155all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
156
157EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
158
159PREINSTALL_DIRS =
160PREINSTALL_FILES =
161TMPINSTALL_FILES =
162
163$(PROJECT_INCLUDE)/$(dirstamp):
164        @$(mkdir_p) $(PROJECT_INCLUDE)
165        @: > $(PROJECT_INCLUDE)/$(dirstamp)
166PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
167
168$(PROJECT_LIB)/$(dirstamp):
169        @$(mkdir_p) $(PROJECT_LIB)
170        @: > $(PROJECT_LIB)/$(dirstamp)
171PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
172
173$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
174        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
175PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
176
177$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
178        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
179PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
180
181$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
182        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
183PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
184
185$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
186        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
187PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
188
189$(PROJECT_INCLUDE)/bsp/$(dirstamp):
190        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
191        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
192PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
193
194$(PROJECT_INCLUDE)/bsp/irq.h: ../../i386/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
196PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
197
198$(PROJECT_INCLUDE)/bsp/irq_asm.h: ../../i386/shared/irq/irq_asm.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq_asm.h
200PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq_asm.h
201
202$(PROJECT_INCLUDE)/crt.h: include/crt.h $(PROJECT_INCLUDE)/$(dirstamp)
203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/crt.h
204PREINSTALL_FILES += $(PROJECT_INCLUDE)/crt.h
205
206$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
207        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
208PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
209
210$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
211        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
212TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
213
214$(PROJECT_LIB)/start16.bin: start16.bin $(PROJECT_LIB)/$(dirstamp)
215        $(INSTALL_DATA) $< $(PROJECT_LIB)/start16.bin
216TMPINSTALL_FILES += $(PROJECT_LIB)/start16.bin
217
218$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
219        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
220PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
221
222$(PROJECT_INCLUDE)/rtems/$(dirstamp):
223        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems
224        @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp)
225PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp)
226
227$(PROJECT_INCLUDE)/rtems/keyboard.h: console/keyboard.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
228        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/keyboard.h
229PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/keyboard.h
230
231$(PROJECT_INCLUDE)/rtems/kd.h: console/kd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
232        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/kd.h
233PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/kd.h
234
235$(PROJECT_INCLUDE)/rtems/serial_mouse.h: console/serial_mouse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
236        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/serial_mouse.h
237PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/serial_mouse.h
238
239$(PROJECT_INCLUDE)/rtems/ps2_drv.h: console/ps2_drv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
240        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ps2_drv.h
241PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ps2_drv.h
242
243$(PROJECT_INCLUDE)/rtems/fb_vga.h: console/fb_vga.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
244        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fb_vga.h
245PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fb_vga.h
246
247$(PROJECT_INCLUDE)/i386_io.h: ../../i386/shared/comm/i386_io.h $(PROJECT_INCLUDE)/$(dirstamp)
248        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i386_io.h
249PREINSTALL_FILES += $(PROJECT_INCLUDE)/i386_io.h
250
251$(PROJECT_INCLUDE)/pcibios.h: ../../i386/shared/pci/pcibios.h $(PROJECT_INCLUDE)/$(dirstamp)
252        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/pcibios.h
253PREINSTALL_FILES += $(PROJECT_INCLUDE)/pcibios.h
254
255$(PROJECT_INCLUDE)/uart.h: ../../i386/shared/comm/uart.h $(PROJECT_INCLUDE)/$(dirstamp)
256        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/uart.h
257PREINSTALL_FILES += $(PROJECT_INCLUDE)/uart.h
258
259if HAS_NETWORKING
260$(PROJECT_INCLUDE)/wd80x3.h: include/wd80x3.h $(PROJECT_INCLUDE)/$(dirstamp)
261        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/wd80x3.h
262PREINSTALL_FILES += $(PROJECT_INCLUDE)/wd80x3.h
263endif
264
265CLEANFILES += $(PREINSTALL_FILES)
266DISTCLEANFILES += $(PREINSTALL_DIRS)
267CLEANFILES += $(TMPINSTALL_FILES)
268
269include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.