|
|
1.1 root 1: # Makefile fragment for i386.
2:
3: # Copyright (C) 1997, 1999, 2006, 2007 Free Software Foundation, Inc.
4:
5: # Permission to use, copy, modify and distribute this software and its
6: # documentation is hereby granted, provided that both the copyright
7: # notice and this permission notice appear in all copies of the
8: # software, derivative works or modified versions, and any portions
9: # thereof, and that both notices appear in supporting documentation.
10: #
11: # THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
12: # "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
13: # LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14: # USE OF THIS SOFTWARE.
15:
16: #
17: # Source files for any i386 kernel.
18: #
19:
20: libkernel_a_SOURCES += \
21: i386/i386at/autoconf.c \
22: i386/i386at/autoconf.h \
23: i386/i386at/conf.c \
24: i386/i386at/cons_conf.c \
25: i386/i386at/idt.h \
26: i386/i386at/model_dep.c \
1.1.1.2 ! root 27: i386/i386at/model_dep.h \
1.1 root 28: i386/include/mach/sa/stdarg.h
29:
30: if PLATFORM_at
31: libkernel_a_SOURCES += \
32: i386/i386at/boothdr.S \
33: i386/i386at/com.c \
34: i386/i386at/com.h \
35: i386/i386at/comreg.h \
36: i386/i386at/cram.h \
37: i386/i386at/disk.h \
38: i386/i386at/i8250.h \
39: i386/i386at/immc.c \
40: i386/i386at/int_init.c \
41: i386/i386at/int_init.h \
42: i386/i386at/interrupt.S \
43: i386/i386at/kd.c \
44: i386/i386at/kd.h \
45: i386/i386at/kd_event.c \
46: i386/i386at/kd_event.h \
47: i386/i386at/kd_queue.c \
48: i386/i386at/kd_queue.h \
49: i386/i386at/kd_mouse.c \
50: i386/i386at/kd_mouse.h \
51: i386/i386at/kdasm.S \
52: i386/i386at/kdsoft.h \
53: i386/i386at/mem.c \
1.1.1.2 ! root 54: i386/i386at/mem.h \
1.1 root 55: i386/i386at/pic_isa.c \
56: i386/i386at/rtc.c \
57: i386/i386at/rtc.h
1.1.1.2 ! root 58:
! 59: libkernel_a_SOURCES += \
! 60: i386/i386at/acpihalt.c \
! 61: i386/i386at/acpihalt.h \
! 62: i386/i386at/acpi.c \
! 63: i386/i386at/grub_glue.c \
! 64: i386/grub/err.h \
! 65: i386/grub/cpu/io.h \
! 66: i386/grub/cpu/types.h \
! 67: i386/grub/cpu/time.h \
! 68: i386/grub/mm.h \
! 69: i386/grub/acpi.h \
! 70: i386/grub/symbol.h \
! 71: i386/grub/misc.h \
! 72: i386/grub/types.h \
! 73: i386/grub/time.h \
! 74: i386/grub/i18n.h \
! 75: i386/grub/compiler.h \
! 76: i386/grub/glue.h
1.1 root 77: endif
78:
79: #
80: # `lpr' device support.
81: #
82:
83: if enable_lpr
84: libkernel_a_SOURCES += \
85: i386/i386at/lpr.c \
1.1.1.2 ! root 86: i386/i386at/lpr.h
1.1 root 87: endif
88:
89:
90: #
91: # Further source files for any i386 kernel.
92: #
93:
94: libkernel_a_SOURCES += \
95: i386/i386/ast.h \
96: i386/i386/ast_check.c \
97: i386/i386/ast_types.h \
98: i386/i386/cpu_number.h \
99: i386/i386/cswitch.S \
100: i386/i386/db_disasm.c \
101: i386/i386/db_interface.c \
102: i386/i386/db_interface.h \
103: i386/i386/db_machdep.h \
104: i386/i386/db_trace.c \
1.1.1.2 ! root 105: i386/i386/db_trace.h \
1.1 root 106: i386/i386/debug.h \
107: i386/i386/debug_i386.c \
108: i386/i386/debug_trace.S \
109: i386/i386/eflags.h \
110: i386/i386/fpu.c \
111: i386/i386/fpu.h \
112: i386/i386/gdt.c \
113: i386/i386/gdt.h \
114: i386/i386/idt-gen.h \
115: i386/i386/idt.c \
116: i386/i386/idt_inittab.S \
117: i386/i386/io_perm.c \
118: i386/i386/io_perm.h \
119: i386/i386/ipl.h \
120: i386/i386/ktss.c \
121: i386/i386/ktss.h \
122: i386/i386/kttd_interface.c \
123: i386/i386/kttd_machdep.h \
124: i386/i386/ldt.c \
125: i386/i386/ldt.h \
126: i386/i386/lock.h \
127: i386/i386/locore.S \
128: i386/i386/locore.h \
129: i386/i386/loose_ends.c \
130: i386/i386/loose_ends.h \
131: i386/i386/mach_param.h \
132: i386/i386/machine_routines.h \
133: i386/i386/machine_task.c \
134: i386/i386/machspl.h \
135: i386/i386/model_dep.h \
136: i386/i386/mp_desc.c \
137: i386/i386/mp_desc.h \
138: i386/i386/pcb.c \
139: i386/i386/pcb.h \
140: i386/i386/phys.c \
141: i386/i386/pio.h \
142: i386/i386/pmap.h \
143: i386/i386/proc_reg.h \
144: i386/i386/sched_param.h \
145: i386/i386/seg.c \
146: i386/i386/seg.h \
147: i386/i386/setjmp.h \
148: i386/i386/spl.S \
149: i386/i386/spl.h \
150: i386/i386/task.h \
151: i386/i386/thread.h \
152: i386/i386/time_stamp.h \
153: i386/i386/trap.c \
154: i386/i386/trap.h \
155: i386/i386/tss.h \
156: i386/i386/user_ldt.c \
157: i386/i386/user_ldt.h \
158: i386/i386/vm_param.h \
159: i386/i386/xpr.h \
160: i386/intel/pmap.c \
161: i386/intel/pmap.h \
162: i386/intel/read_fault.c \
163: i386/intel/read_fault.h
164: EXTRA_DIST += \
165: i386/i386/mach_i386.srv
166:
167: if PLATFORM_at
168: libkernel_a_SOURCES += \
169: i386/i386/hardclock.c \
1.1.1.2 ! root 170: i386/i386/hardclock.h \
1.1 root 171: i386/i386/io_map.c \
172: i386/i386/pic.c \
173: i386/i386/pic.h \
174: i386/i386/pit.c \
175: i386/i386/pit.h
176: endif
177:
178: #
179: # KDB support.
180: #
181:
182: if enable_kdb
183: libkernel_a_SOURCES += \
184: i386/i386/_setjmp.S
185: endif
186:
187:
188: #
189: # Files from the generic sources that we want.
190: #
191:
192: libkernel_a_SOURCES += \
193: chips/busses.c \
194: chips/busses.h \
195: device/cirbuf.c
196:
197: #
198: # Automatically generated source files.
199: #
200: # See Makerules.mig.am.
201: #
202:
203: nodist_lib_dep_tr_for_defs_a_SOURCES += \
204: i386/i386/mach_i386.server.defs.c
205: nodist_libkernel_a_SOURCES += \
206: i386/i386/mach_i386.server.h \
207: i386/i386/mach_i386.server.c \
208: i386/i386/mach_i386.server.msgids
209: # i386/i386/mach_i386.server.defs
210:
211: EXTRA_DIST += \
212: i386/i386/i386asm.sym
213: nodist_libkernel_a_SOURCES += \
214: i386/i386/i386asm.h
215:
216: #
217: # Architecture specialities.
218: #
219:
220: EXTRA_DIST += \
221: i386/ldscript
222: if PLATFORM_at
223: gnumach_LINKFLAGS += \
224: --defsym _START=0xC0100000 \
225: --defsym _START_MAP=0x100000 \
226: -T '$(srcdir)'/i386/ldscript
227: endif
228:
229: AM_CFLAGS += \
230: -mno-3dnow \
231: -mno-mmx \
232: -mno-sse \
233: -mno-sse2
234:
235: #
236: # Installation.
237: #
238:
239: include_mach_i386dir = $(includedir)/mach/i386
240: include_mach_i386_HEADERS = \
241: i386/include/mach/i386/asm.h \
242: i386/include/mach/i386/boolean.h \
243: i386/include/mach/i386/disk.h \
244: i386/include/mach/i386/eflags.h \
245: i386/include/mach/i386/exception.h \
246: i386/include/mach/i386/fp_reg.h \
247: i386/include/mach/i386/ioccom.h \
248: i386/include/mach/i386/kern_return.h \
249: i386/include/mach/i386/mach_i386.defs \
250: i386/include/mach/i386/mach_i386_types.h \
251: i386/include/mach/i386/machine_types.defs \
252: i386/include/mach/i386/multiboot.h \
253: i386/include/mach/i386/syscall_sw.h \
254: i386/include/mach/i386/thread_status.h \
255: i386/include/mach/i386/trap.h \
256: i386/include/mach/i386/vm_param.h \
257: i386/include/mach/i386/vm_types.h
258:
259: #
260: # Building a distribution.
261: #
262:
263: EXTRA_DIST += \
264: i386/README-Drivers
265:
266: # Instead of listing each file individually...
267: EXTRA_DIST += \
268: i386/include
269:
270: #
271: # Platform specific parts.
272: #
273:
274: if PLATFORM_xen
275: include i386/xen/Makefrag.am
276:
277: libkernel_a_SOURCES += \
278: i386/i386/xen.h
279:
280: endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.