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

4.104.114.84.95
Last change on this file since 5c7f274 was 5c7f274, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 10, 2006 at 7:14:43 PM

2006-01-10 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Add ampolish3 support.
  • Makefile.am: Add preinstall.am.
  • Property mode set to 100644
File size: 5.0 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
159include $(srcdir)/preinstall.am
160
161include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.