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

4.104.115
Last change on this file since a1bc0a15 was a1bc0a15, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/26/08 at 04:56:17

2008-09-26 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.am: Cleanup ../../shared/include/bootcard.h handling.
  • Property mode set to 100644
File size: 4.3 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
15include_bspdir = $(includedir)/bsp
16
17dist_project_lib_DATA = bsp_specs
18
19include_HEADERS = include/bsp.h
20include_HEADERS += include/tm27.h
21
22nodist_include_HEADERS = include/bspopts.h
23nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
24DISTCLEANFILES = include/bspopts.h
25
26noinst_PROGRAMS =
27
28SUBDIRS = . tools
29
30include_bsp_HEADERS = ../../i386/shared/irq/irq.h \
31    ../../i386/shared/irq/irq_asm.h
32
33include_HEADERS += include/crt.h
34nodist_include_HEADERS += ../../shared/include/coverhd.h
35
36EXTRA_DIST = start/start.S
37start.$(OBJEXT): start/start.S
38        $(CPPASCOMPILE) -o $@ -c $<
39
40project_lib_DATA = start.$(OBJEXT)
41
42EXTRA_DIST += start/start16.S
43start16.$(OBJEXT): start/start16.S
44        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
45
46start16-elf32.$(OBJEXT): start16.$(OBJEXT)
47        $(LD) -N -T $(top_srcdir)/startup/linkcmds -Ttext $(START16ADDR) -e start16 -nostdlib \
48          --oformat=elf32-i386 \
49        -o $@ $<
50
51start16.bin: start16-elf32.$(OBJEXT)
52        $(OBJCOPY) -O binary $< $@
53CLEANFILES += start16.bin
54
55project_lib_DATA += start16.bin
56
57dist_project_lib_DATA += startup/linkcmds
58
59clock_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c
60
61include_rtemsdir = $(includedir)/rtems
62include_rtems_HEADERS = console/keyboard.h console/kd.h \
63    console/serial_mouse.h console/ps2_drv.h console/fb_vga.h
64
65include_HEADERS += ../../i386/shared/comm/i386_io.h
66console_SOURCES = console/console.c console/inch.c console/outch.c \
67    console/defkeymap.c console/fb_vga.c console/keyboard.c \
68    console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \
69    console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \
70    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
71
72gdb_SOURCES = ../../i386/shared/comm/i386-stub.c \
73    ../../i386/shared/comm/i386-stub-glue.c \
74    ../../i386/shared/comm/gdb_glue.c
75
76gnat_SOURCES = ../../shared/gnatinstallhandler.c
77
78include_HEADERS += ../../i386/shared/pci/pcibios.h
79pci_SOURCES = ../../i386/shared/pci/pcibios.c \
80    ../../i386/shared/pci/pcibios.h
81
82include_HEADERS += ../../i386/shared/comm/uart.h
83startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
84    ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \
85    ../../shared/bsppretaskinghook.c startup/bspstart.c \
86    ../../shared/bspclean.c startup/bspreset.c ../../i386/shared/irq/idt.c \
87    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
88    ../../shared/bootcard.c ../../shared/sbrk.c \
89    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S
90
91timer_SOURCES = timer/timer.c timer/timerisr.S
92
93ide_SOURCES = ide/idecfg.c ide/ide.c
94
95if HAS_NETWORKING
96ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
97noinst_PROGRAMS += ne2000.rel
98ne2000_rel_SOURCES = ne2000/ne2000.c
99ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
100ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101endif
102
103if HAS_NETWORKING
104# This driver needs to be reworked for the BSD stack.
105# We only install wd80x3.h if HAS_NETWORKING was defined
106include_HEADERS += include/wd80x3.h
107
108wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
109noinst_PROGRAMS += wd8003.rel
110wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
111wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
112wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113endif
114
115if HAS_NETWORKING
1163c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
117noinst_PROGRAMS += 3c509.rel
1183c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1193c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1203c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
121endif
122
123noinst_LIBRARIES = libbsp.a
124libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(gdb_SOURCES) \
125    $(gnat_SOURCES) $(pci_SOURCES) $(startup_SOURCES) $(timer_SOURCES) \
126    $(ide_SOURCES)
127
128libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
129    ../../../libcpu/@RTEMS_CPU@/page.rel \
130    ../../../libcpu/@RTEMS_CPU@/score.rel
131# We only build the Network library if HAS_NETWORKING was defined
132# dec21140 is supported via libchip
133if HAS_NETWORKING
134libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
135endif
136
137EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
138
139include $(srcdir)/preinstall.am
140include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.