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

4.104.115
Last change on this file since 05d1c82 was 05d1c82, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/30/08 at 06:15:27

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

  • clock/ckinit.c: include "../../../shared/clockdrv_shell.h".
  • Makefile.am: Reflect changes above.
  • 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
59noinst_LIBRARIES = libbsp.a
60libbsp_a_SOURCES =
61
62# clock
63libbsp_a_SOURCES += clock/ckinit.c clock/todcfg.c ../../shared/tod.c \
64    ../../../shared/clockdrv_shell.h
65
66include_rtemsdir = $(includedir)/rtems
67include_rtems_HEADERS = console/keyboard.h console/kd.h \
68    console/serial_mouse.h console/ps2_drv.h console/fb_vga.h
69
70include_HEADERS += ../../i386/shared/comm/i386_io.h
71# console
72libbsp_a_SOURCES += console/console.c console/inch.c console/outch.c \
73    console/defkeymap.c console/fb_vga.c console/keyboard.c \
74    console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \
75    console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \
76    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
77
78# gdb
79libbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c \
80    ../../i386/shared/comm/i386-stub-glue.c \
81    ../../i386/shared/comm/gdb_glue.c
82
83# gnat
84libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
85
86include_HEADERS += ../../i386/shared/pci/pcibios.h
87# pci
88libbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c \
89    ../../i386/shared/pci/pcibios.h
90
91include_HEADERS += ../../i386/shared/comm/uart.h
92# startup
93libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
94    ../../shared/bsppredriverhook.c startup/bspgetworkarea.c \
95    ../../shared/bsppretaskinghook.c startup/bspstart.c \
96    ../../shared/bspclean.c startup/bspreset.c ../../i386/shared/irq/idt.c \
97    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
98    ../../shared/bootcard.c ../../shared/sbrk.c \
99    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S
100
101# timer
102libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
103
104# ide
105libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
106
107if HAS_NETWORKING
108ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
109noinst_PROGRAMS += ne2000.rel
110ne2000_rel_SOURCES = ne2000/ne2000.c
111ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
112ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113endif
114
115if HAS_NETWORKING
116# This driver needs to be reworked for the BSD stack.
117# We only install wd80x3.h if HAS_NETWORKING was defined
118include_HEADERS += include/wd80x3.h
119
120wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
121noinst_PROGRAMS += wd8003.rel
122wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
123wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
124wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
125endif
126
127if HAS_NETWORKING
1283c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
129noinst_PROGRAMS += 3c509.rel
1303c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1313c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1323c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
133endif
134
135libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
136    ../../../libcpu/@RTEMS_CPU@/page.rel \
137    ../../../libcpu/@RTEMS_CPU@/score.rel
138# We only build the Network library if HAS_NETWORKING was defined
139# dec21140 is supported via libchip
140if HAS_NETWORKING
141libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
142endif
143
144EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
145
146include $(srcdir)/preinstall.am
147include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.