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