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