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

4.104.114.95
Last change on this file since ed8206b was ed8206b, checked in by Joel Sherrill <joel.sherrill@…>, on 04/17/08 at 22:54:45

2008-04-17 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Do not use intermediate .rel files unless from libcpu or a network driver. This simplifies the Makefile.am and avoids pulling in unneeded code.
  • Property mode set to 100644
File size: 4.2 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) -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
57clock_SOURCES = clock/ckinit.c clock/todcfg.c ../../shared/tod.c
58
59include_rtemsdir = $(includedir)/rtems
60include_rtems_HEADERS = console/keyboard.h console/kd.h \
61    console/serial_mouse.h console/ps2_drv.h console/fb_vga.h
62
63include_HEADERS += ../../i386/shared/comm/i386_io.h
64console_SOURCES = console/console.c console/inch.c console/outch.c \
65    console/defkeymap.c console/fb_vga.c console/keyboard.c \
66    console/mouse_parser.c console/pc_keyb.c console/ps2_mouse.c \
67    console/serial_mouse.c console/vgainit.c console/vt.c console/videoAsm.S \
68    ../../i386/shared/comm/uart.c ../../i386/shared/comm/tty_drv.c
69
70gdb_SOURCES = ../../i386/shared/comm/i386-stub.c \
71    ../../i386/shared/comm/i386-stub-glue.c \
72    ../../i386/shared/comm/gdb_glue.c
73
74gnat_SOURCES = ../../shared/gnatinstallhandler.c
75
76include_HEADERS += ../../i386/shared/pci/pcibios.h
77pci_SOURCES = ../../i386/shared/pci/pcibios.c \
78    ../../i386/shared/pci/pcibios.h
79
80include_HEADERS += ../../i386/shared/comm/uart.h
81startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
82    ../../shared/bsppredriverhook.c \
83    startup/bspstart.c startup/exit.c ../../i386/shared/irq/idt.c \
84    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
85    ../../shared/bootcard.c ../../shared/sbrk.c \
86    startup/ldsegs.S ../../i386/shared/irq/irq_asm.S
87
88timer_SOURCES = timer/timer.c timer/timerisr.S
89
90ide_SOURCES = ide/idecfg.c ide/ide.c
91
92if HAS_NETWORKING
93ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
94noinst_PROGRAMS += ne2000.rel
95ne2000_rel_SOURCES = ne2000/ne2000.c
96ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
97ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
98endif
99
100if HAS_NETWORKING
101# This driver needs to be reworked for the BSD stack.
102# We only install wd80x3.h if HAS_NETWORKING was defined
103include_HEADERS += include/wd80x3.h
104
105wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
106noinst_PROGRAMS += wd8003.rel
107wd8003_rel_SOURCES = wd8003/wd8003.c include/wd80x3.h
108wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
109wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
110endif
111
112if HAS_NETWORKING
1133c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
114noinst_PROGRAMS += 3c509.rel
1153c509_rel_SOURCES = 3c509/3c509.c 3c509/3c509.h 3c509/elink.c 3c509/elink.h
1163c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
1173c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
118endif
119
120noinst_LIBRARIES = libbsp.a
121libbsp_a_SOURCES = $(clock_SOURCES) $(console_SOURCES) $(gdb_SOURCES) \
122    $(gnat_SOURCES) $(pci_SOURCES) $(startup_SOURCES) $(timer_SOURCES) \
123    $(ide_SOURCES)
124
125libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel \
126    ../../../libcpu/@RTEMS_CPU@/page.rel \
127    ../../../libcpu/@RTEMS_CPU@/score.rel
128# We only build the Network library if HAS_NETWORKING was defined
129# dec21140 is supported via libchip
130if HAS_NETWORKING
131libbsp_a_LIBADD += ne2000.rel wd8003.rel 3c509.rel
132endif
133
134
135EXTRA_DIST += HOWTO README.dec21140 STATUS times_i486dx times_p5
136
137include $(srcdir)/preinstall.am
138include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.