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)
|
---|
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)
|
---|
23 |
|
---|
24 | .c.obj : .autodepend
|
---|
25 | wcc -fo=.obj $(CFLAGS) $(DEFS) $(INCLS) $<
|
---|
26 |
|
---|
27 | .asm.obj : .autodepend
|
---|
28 | wasm -fo=.obj $(AFLAGS) $(DEFS) $<
|
---|
29 |
|
---|
30 | OBJS = vgarom.obj vberom.obj vgabios.obj vbe.obj
|
---|
31 |
|
---|
32 | vgabios.rom : vgabios.bin
|
---|
33 | biossums $< $@
|
---|
34 |
|
---|
35 | vgabios.bin : $(OBJS) $(__MAKEFILES__)
|
---|
36 | wlink name $@ system dos debug all option quiet &
|
---|
37 | option nofarcalls, map, verbose, statics, symfile &
|
---|
38 | output raw offset=0xC0000 order &
|
---|
39 | clname CODE segment VGAROM segaddr=0xC000 &
|
---|
40 | segment _TEXT segaddr=0xC000 offset=0xA00 &
|
---|
41 | segment VBE32 segaddr=0xC000 offset=0x4600 &
|
---|
42 | clname DATA segment _DATA segaddr=0xC000 offset=0x4800 &
|
---|
43 | file { $(OBJS) } disable 1014, 1023, 2120
|
---|
44 |
|
---|
45 | clean : .symbolic
|
---|
46 | @rm -f *.obj *.err
|
---|
47 | @rm -f vgabios.bin vgabios.rom vgabios.map vgabios.sym
|
---|