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

Last change on this file since 9edb72e was 9edb72e, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 5, 2018 at 4:56:26 AM

build: Remove DISTCLEANFILES

A "make distclean" is not supported. So, it makes no sense to have pure
"make distclean" related stuff in the Makefile.am.

  • Property mode set to 100644
File size: 5.8 KB
Line 
1##
2##
3
4ACLOCAL_AMFLAGS = -I ../../../../aclocal
5
6# FIXME: We must not include *.cfg
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
8
9CLEANFILES =
10
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../bsp.am
13
14dist_project_lib_DATA = startup/bsp_specs
15
16
17noinst_PROGRAMS =
18
19_SUBDIRS = . tools
20
21TMPINSTALL_FILES =
22
23start.$(OBJEXT): start/start.S
24        $(CPPASCOMPILE) -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27start16.$(OBJEXT): start/start16.S
28        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ -c $<
29
30start16-elf32.$(OBJEXT): start16.$(OBJEXT)
31        $(LD) -N -Ttext $(START16ADDR) -e start16 -nostdlib \
32          --oformat=elf32-i386 \
33        -o $@ $<
34
35start16.bin: start16-elf32.$(OBJEXT)
36        $(OBJCOPY) -O binary $< $@
37CLEANFILES += start16.bin
38
39$(PROJECT_LIB)/start16.bin: start16.bin $(PROJECT_LIB)/$(dirstamp)
40        $(INSTALL_DATA) $< $(PROJECT_LIB)/start16.bin
41TMPINSTALL_FILES += $(PROJECT_LIB)/start16.bin
42
43project_lib_DATA += start16.bin
44
45project_lib_DATA += linkcmds
46
47project_lib_LIBRARIES = librtemsbsp.a
48librtemsbsp_a_SOURCES =
49
50# clock
51librtemsbsp_a_SOURCES += clock/ckinit.c
52librtemsbsp_a_SOURCES += ../../shared/clockdrv_shell.h
53librtemsbsp_a_SOURCES += clock/todcfg.c
54librtemsbsp_a_SOURCES += ../../shared/tod.c
55
56if RTEMS_VGA
57librtemsbsp_a_SOURCES += console/inch.c
58librtemsbsp_a_SOURCES += console/outch.c
59librtemsbsp_a_SOURCES += console/defkeymap.c
60librtemsbsp_a_SOURCES += console/keyboard.c
61librtemsbsp_a_SOURCES += console/pc_keyb.c
62librtemsbsp_a_SOURCES += console/ps2_mouse.c
63librtemsbsp_a_SOURCES += console/vgainit.c
64librtemsbsp_a_SOURCES += console/vt.c
65librtemsbsp_a_SOURCES += console/videoAsm.S
66librtemsbsp_a_SOURCES += console/kbd_parser.c
67librtemsbsp_a_SOURCES += console/vgacons.c
68if USE_VGA
69librtemsbsp_a_SOURCES += console/fb_vga.c
70endif
71if USE_CIRRUS_GD5446
72librtemsbsp_a_SOURCES += console/fb_cirrus.c
73endif
74if USE_VBE_RM
75librtemsbsp_a_SOURCES += console/fb_vesa_rm.c
76endif
77endif
78
79# console (non-graphics support)
80librtemsbsp_a_SOURCES += console/serial_mouse_config.c
81librtemsbsp_a_SOURCES += ../../i386/shared/comm/uart.c
82librtemsbsp_a_SOURCES += ../../i386/shared/comm/tty_drv.c
83librtemsbsp_a_SOURCES += ../../i386/shared/realmode_int/realmode_int.c
84librtemsbsp_a_SOURCES += ../../shared/console.c
85librtemsbsp_a_SOURCES += console/console_select.c
86librtemsbsp_a_SOURCES += ../../shared/console_read.c
87librtemsbsp_a_SOURCES += ../../shared/console_write.c
88librtemsbsp_a_SOURCES += console/console_control.c
89librtemsbsp_a_SOURCES += console/conscfg.c
90librtemsbsp_a_SOURCES += console/printk_support.c
91librtemsbsp_a_SOURCES += console/exar17d15x.c
92librtemsbsp_a_SOURCES += console/rtd316.c
93librtemsbsp_a_SOURCES += console/uart_bus_pci.c
94librtemsbsp_a_SOURCES += console/gdb_select.c
95
96# gdb
97librtemsbsp_a_SOURCES += ../../i386/shared/comm/i386-stub.c
98librtemsbsp_a_SOURCES += ../../i386/shared/comm/i386-stub-glue.c
99librtemsbsp_a_SOURCES += ../../i386/shared/comm/gdb_glue.c
100
101# gnat
102librtemsbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
103
104# pci
105librtemsbsp_a_SOURCES += ../../i386/shared/pci/pcibios.c
106librtemsbsp_a_SOURCES += ../../i386/shared/pci/pci_io.c
107librtemsbsp_a_SOURCES += ../../shared/pci/pci_bus_count.c
108librtemsbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
109
110# startup
111librtemsbsp_a_SOURCES += ../../shared/bsppredriverhook.c
112librtemsbsp_a_SOURCES += startup/bsp_fatal_halt.c
113librtemsbsp_a_SOURCES += startup/bspgetworkarea.c
114librtemsbsp_a_SOURCES += startup/bspidle.S
115librtemsbsp_a_SOURCES += startup/bspstart.c
116librtemsbsp_a_SOURCES += startup/bspcmdline.c
117librtemsbsp_a_SOURCES += ../../shared/bspclean.c
118librtemsbsp_a_SOURCES += startup/bspreset.c
119librtemsbsp_a_SOURCES += ../../i386/shared/irq/idt.c
120librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq.c
121librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
122librtemsbsp_a_SOURCES += ../../i386/shared/irq/elcr.c
123librtemsbsp_a_SOURCES += ../../shared/bootcard.c
124librtemsbsp_a_SOURCES += ../../shared/getentropy-cpucounter.c
125librtemsbsp_a_SOURCES += ../../shared/sbrk.c
126librtemsbsp_a_SOURCES += startup/ldsegs.S
127librtemsbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
128librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/irq/irq-default-handler.c
129
130# timer
131librtemsbsp_a_SOURCES += timer/timer.c timer/timerisr.S
132
133if HAS_IDE
134# ide
135librtemsbsp_a_SOURCES += ide/ide.c
136librtemsbsp_a_SOURCES += ide/idecfg.c
137endif
138
139if HAS_SMP
140librtemsbsp_a_SOURCES += ../../i386/shared/smp/getcpuid.c
141librtemsbsp_a_SOURCES += ../../i386/shared/smp/smp-imps.c
142
143project_lib_DATA += appstart.$(OBJEXT)
144appcpustart.$(OBJEXT): start/start16.S
145        $(CPPASCOMPILE) $(AM_CPPFLAGS) -DSMP_SECONDARY_CORE -o $@ -c $<
146
147appstart.$(OBJEXT): appcpustart.$(OBJEXT)
148        $(LD) -r -N -T $(top_srcdir)/startup/linkcmds \
149            -Ttext 0x70000 -e app_processor_start -nostdlib \
150            -o appstart_tmp.exe $<
151        $(OBJCOPY) -O binary appstart_tmp.exe appstart.bin
152        $(OBJCOPY) -I binary -O elf32-i386 -B i386 appstart.bin $@
153endif
154
155if HAS_NETWORKING
156librtemsbsp_a_SOURCES += 3c509/3c509.c
157librtemsbsp_a_SOURCES += 3c509/3c509.h
158librtemsbsp_a_SOURCES += 3c509/elink.c
159librtemsbsp_a_SOURCES += 3c509/elink.h
160librtemsbsp_a_SOURCES += ne2000/ne2000.c
161librtemsbsp_a_SOURCES += wd8003/wd8003.c
162endif
163
164librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/shared/cache/cache.c
165librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/cpuModel.S
166librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/displayCpu.c
167librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/idtr.S
168librtemsbsp_a_SOURCES += ../../../../../../bsps/i386/pc386/start/page.c
169
170if HAS_SMP
171librtemsbsp_a_LIBADD = appstart.$(OBJEXT)
172endif
173
174
175include $(top_srcdir)/../../../../automake/local.am
176include $(srcdir)/../../../../../../bsps/shared/irq-sources.am
177include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
178include $(top_srcdir)/../../../../automake/subdirs.am
179include $(srcdir)/../../../../../../bsps/i386/pc386/headers.am
Note: See TracBrowser for help on using the repository browser.