|
|
1.1 root 1: # i386 Mach makefile fragment
2: # Copyright 1997, 1999 Free Software Foundation, Inc.
3: #
4: # Permission to use, copy, modify and distribute this software and its
5: # documentation is hereby granted, provided that both the copyright
6: # notice and this permission notice appear in all copies of the
7: # software, derivative works or modified versions, and any portions
8: # thereof, and that both notices appear in supporting documentation.
9: #
10: # THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
11: # "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
12: # LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
13: # USE OF THIS SOFTWARE.
14:
15:
16: # Some of the i386-specific code checks for these.
17: DEFINES += -D__ELF__=1 -Di386=1 -DAT386=1
18:
19: # Source files for any i386 kernel
20: i386at-files = int_init.c pic_isa.c
21: i386-files = ast_check.c fpu.c gdt.c idt.c ldt.c \
22: mp_desc.c pcb.c phys.c pic.c pit.c trap.c user_ldt.c \
23: hardclock.c io_perm.c machine_task.c # loose_ends.c
24: intel-files = pmap.c read_fault.c
25:
26: # Assembler source
27: i386at-Sfiles = interrupt.S
28: i386-Sfiles = cswitch.S idt_inittab.S locore.S spl.S
29:
30: objfiles += $(subst .c,.o,$(i386at-files) $(i386-files) $(intel-files)) \
31: $(subst .S,.o,$(i386at-Sfiles) $(i386-Sfiles))
32: vpath %.c $(sysdep)/i386at $(sysdep)/i386 $(sysdep)/intel
33: vpath %.S $(sysdep)/i386at $(sysdep)/i386
34:
35: # Mig-generated
36: objfiles += mach_i386_server.o
37:
38:
39:
40: # Where to find some things
41: vpath i386asm.sym $(sysdep)/i386
42: vpath mach_i386.srv $(sysdep)/i386
43:
44: $(patsubst %.S,%.o,$(i386at-Sfiles) $(i386-Sfiles)): i386asm.h
45:
46: # Our include files are here; make sure they PRECEDE the generic ones.
47: INCLUDES := -I$(sysdep)/i386at -I$(sysdep)/i386 \
48: -I$(sysdep)/include -I$(sysdep)/include/mach/sa \
49: -I$(sysdep)/bogus -I$(sysdep) \
50: $(INCLUDES)
51:
52: # arrange suitable load address
53: KERN_LDFLAGS += -Ttext 0x100000
54:
55: # Assemble .S files correctly
56: ASFLAGS += -DASSEMBLER
57:
58:
59: # Header files we install
60:
61: i386-installed-headers := $(addprefix mach/i386/,\
62: asm.h boolean.h disk.h eflags.h exception.h \
63: fp_reg.h ioccom.h kern_return.h mach_i386.defs \
64: mach_i386_types.h machine_types.defs \
65: rpc.h syscall_sw.h \
66: thread_status.h trap.h vm_param.h vm_types.h)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.