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

4.104.115
Last change on this file since 2c8a980 was 2c8a980, checked in by Joel Sherrill <joel.sherrill@…>, on 07/03/09 at 15:07:54

2009-07-01 Sebastian Huber <sebastian.huber@…>

  • Makefile.am, preinstall.am: Update for generic interrupt support.
  • Property mode set to 100644
File size: 4.6 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
13
14include_bspdir = $(includedir)/bsp
15
16dist_project_lib_DATA = bsp_specs
17
18include_HEADERS = include/bsp.h
19include_HEADERS += include/tm27.h
20
21nodist_include_HEADERS = include/bspopts.h
22nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
23DISTCLEANFILES = include/bspopts.h
24
25noinst_PROGRAMS =
26
27SUBDIRS = . tools
28
29include_bsp_HEADERS = ../../i386/shared/irq/irq.h \
30    ../../i386/shared/irq/irq_asm.h ../../i386/shared/comm/tty_drv.h \
31    ../../i386/shared/irq/irq-config.h \
32    ../../shared/include/irq-generic.h \
33    ../../shared/include/irq-info.h
34
35include_HEADERS += include/crt.h
36nodist_include_HEADERS += ../../shared/include/coverhd.h
37
38noinst_LIBRARIES = libbspstart.a
39libbspstart_a_SOURCES = start/start.S
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 startup/bspcmdline.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/bspinit.c ../../shared/sbrk.c \
99    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S \
100    ../../shared/src/irq-generic.c \
101    ../../shared/src/irq-legacy.c \
102    ../../shared/src/irq-info.c \
103    ../../shared/src/irq-shell.c
104
105# timer
106libbsp_a_SOURCES += timer/timer.c timer/timerisr.S
107
108# ide
109libbsp_a_SOURCES += ide/idecfg.c ide/ide.c
110
111if HAS_NETWORKING
112ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
113noinst_PROGRAMS += ne2000.rel
114ne2000_rel_SOURCES = ne2000/ne2000.c
115ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
116ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
117endif
118
119if HAS_NETWORKING
120# This driver needs to be reworked for the BSD stack.
121# We only install wd80x3.h if HAS_NETWORKING was defined
122include_HEADERS += include/wd80x3.h
123
124wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
125noinst_PROGRAMS += wd8003.rel
126wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
127wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
128wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
129endif
130
131if HAS_NETWORKING
1323c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
133noinst_PROGRAMS += 3c509.rel
1343c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1353c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1363c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
137endif
138
139libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
140    ../../../libcpu/@RTEMS_CPU@/page.rel \
141    ../../../libcpu/@RTEMS_CPU@/score.rel
142# We only build the Network library if HAS_NETWORKING was defined
143# dec21140 is supported via libchip
144if HAS_NETWORKING
145libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
146endif
147
148EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
149
150include $(srcdir)/preinstall.am
151include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.