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