VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/BIOS/makefile@ 64292

最後變更 在這個檔案從64292是 60580,由 vboxsync 提交於 9 年 前

BIOS: Updated standalone makefile.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.9 KB
 
1# Compiler flags:
2# -q no banner
3# -wx max warnings
4# -0 generate 8086 code
5# -ms force small model (default)
6# -s remove runtime stack checks (required)
7# -os optimize for size
8# -zu assume that SS != DS (required)
9# -ecc default to __cdecl calling convention (bad idea)
10#
11!ifdef __UNIX__
12Q=\"
13!else
14Q="
15!endif
16
17CPU = 386
18
19CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms
20CFLAGS32 = -q -wx -zu -s -oas -d1+ -ms -nt=BIOS32 -nd=BIOS32
21
22DEFS = -DVBOX -DVBOX_LANBOOT_SEG=0xE200 -DVBOX_VERSION_STRING=$(Q)0.9$(Q) &
23 -DVBOX_WITH_SCSI -DVBOX_BIOS_CPU=80286
24
25AFLAGS = -q -0 -wx
26
27INCLS = -I$(Q)../../../../../include$(Q) -I$(Q) ../../BiosCommonCode$(Q)
28
29OBJS = bios.obj post.obj ata.obj floppy.obj floppyt.obj eltorito.obj &
30 boot.obj keyboard.obj disk.obj serial.obj system.obj invop.obj &
31 timepci.obj logo.obj ps2mouse.obj parallel.obj scsi.obj &
32 apm.obj apm_pm.obj pcibios.obj pciutil.obj vds.obj &
33 print.obj pcibio32.obj pci32.obj orgs.obj
34
35!if $(CPU) > 286
36OBJS += ahci.obj
37DEFS += -DVBOX_WITH_AHCI
38!endif
39
40.c.obj : .autodepend
41 wcc -fo=.obj $(CFLAGS) $(DEFS) $(INCLS) $<
42
43.asm.obj : .autodepend
44 wasm -fo=.obj $(AFLAGS) $(DEFS) $(INCLS) $<
45
46vbxbios.rom : vbxbios.bin
47 biossums $< $@
48
49vbxbios.bin : $(OBJS) $(__MAKEFILES__)
50 wlink name $@ system dos debug all option quiet &
51 option nofarcalls, map, verbose, statics, symfile &
52 output raw offset=0xF0000 order &
53 clname DATA segaddr=0xF000 segment _DATA &
54 clname CODE &
55 segment _TEXT segaddr=0xF000 offset=0x1600 &
56 segment BIOS32 segaddr=0xF000 offset=0xDB00 &
57 segment BIOSSEG segaddr=0xF000 offset=0xE000 &
58 file { $(OBJS) } &
59 library clibs.lib &
60 disable 1014, 1023, 2120
61
62logo.obj : logo.c .autodepend
63 wcc -fo=.obj $(INCLS) $(CFLAGS) $(DEFS) -DVBOX_PC_BIOS $<
64
65pci32.obj : pci32.c .autodepend
66 wcc386 -fo=.obj $(INCLS) $(DEFS) $(CFLAGS32) $<
67
68clean : .symbolic
69 @rm -f *.obj *.err
70 @rm -f vbxbios.bin vbxbios.rom vbxbios.map vbxbios.sym
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette