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 | # -zl do not emit default library information
|
---|
10 | #
|
---|
11 | !ifdef __UNIX__
|
---|
12 | Q=\"
|
---|
13 | !else
|
---|
14 | Q="
|
---|
15 | !endif
|
---|
16 | CFLAGS = -q -3 -wx -zu -zl -s -oas -d1 -ms
|
---|
17 | DEFS = -DVBOX -DVBE -DVBOX_VERSION_STRING=$(Q)0.9.90$(Q) -DVBOX_VENDOR=$(Q)Oracle_Corporation$(Q) -DVBOX_PRODUCT=$(Q)Oracle_VM_VirtualBox$(Q) -DVBOX_BIOS_CPU=80386
|
---|
18 | #DEFS = -DVBOX -DVBOX_VERSION_STRING=$(Q)0.9$(Q) -DVBOX_VENDOR=$(Q)Oracle$(Q) -DVBOX_PRODUCT=$(Q)VirtualBox$(Q)
|
---|
19 |
|
---|
20 | AFLAGS = -q -0 -wx
|
---|
21 |
|
---|
22 | INCLS = -I$(Q)../../../../../include$(Q) -I$(Q)../../../../../include/VBox/Graphics$(Q)
|
---|
23 | AINCS = -I$(Q)../../BiosCommonCode$(Q)
|
---|
24 |
|
---|
25 | .c.obj : .autodepend
|
---|
26 | wcc -fo=.obj $(CFLAGS) $(DEFS) $(INCLS) $<
|
---|
27 |
|
---|
28 | .asm.obj : .autodepend
|
---|
29 | wasm -fo=.obj $(AFLAGS) $(DEFS) $(AINCS) $<
|
---|
30 |
|
---|
31 | OBJS = vgarom.obj vberom.obj vgabios.obj vbe.obj
|
---|
32 |
|
---|
33 | vgabios.rom : vgabios.bin
|
---|
34 | biossums $< $@
|
---|
35 |
|
---|
36 | vgabios.bin : $(OBJS) $(__MAKEFILES__)
|
---|
37 | wlink name $@ system dos debug all option quiet &
|
---|
38 | option nofarcalls, map, verbose, statics, symfile &
|
---|
39 | output raw offset=0xC0000 order &
|
---|
40 | clname CODE segment VGAROM segaddr=0xC000 &
|
---|
41 | segment _TEXT segaddr=0xC000 offset=0xA00 &
|
---|
42 | segment VBE32 segaddr=0xC000 offset=0x4600 &
|
---|
43 | clname DATA segment _DATA segaddr=0xC000 offset=0x4800 &
|
---|
44 | file { $(OBJS) } disable 1014, 1023, 2120
|
---|
45 |
|
---|
46 | clean : .symbolic
|
---|
47 | @rm -f *.obj *.err
|
---|
48 | @rm -f vgabios.bin vgabios.rom vgabios.map vgabios.sym
|
---|