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__
|
---|
12 | QUOTE=\"
|
---|
13 | !else
|
---|
14 | QUOTE="
|
---|
15 | !endif
|
---|
16 | CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms
|
---|
17 | DEFS = -DVBOX -DVBOX_LANBOOT_SEG=0xE200 -DVBOX_VERSION_STRING=$(QUOTE)0.9$(QUOTE) &
|
---|
18 | -DVBOX_WITH_SCSI -DVBOX_WITH_AHCI
|
---|
19 |
|
---|
20 | AFLAGS = -q -0 -wx
|
---|
21 |
|
---|
22 | INCLS = -I$(QUOTE)../../../../../include$(QUOTE)
|
---|
23 |
|
---|
24 | .c.obj : .autodepend
|
---|
25 | wcc -fo=.obj $(CFLAGS) $(DEFS) $<
|
---|
26 |
|
---|
27 | .asm.obj : .autodepend
|
---|
28 | wasm -fo=.obj $(AFLAGS) $(DEFS) $<
|
---|
29 |
|
---|
30 | OBJS = bios.obj print.obj ata.obj floppy.obj eltorito.obj boot.obj &
|
---|
31 | keyboard.obj disk.obj serial.obj system.obj timepci.obj &
|
---|
32 | ps2mouse.obj parallel.obj logo.obj scsi.obj ahci.obj &
|
---|
33 | pciutil.obj vds.obj pcibio32.obj orgs.obj
|
---|
34 |
|
---|
35 | vbxbios.rom : vbxbios.bin
|
---|
36 | biossums $< $@
|
---|
37 |
|
---|
38 | vbxbios.bin : $(OBJS) $(__MAKEFILES__)
|
---|
39 | wlink name $@ system dos debug all option quiet &
|
---|
40 | option nofarcalls, map, verbose, statics, symfile &
|
---|
41 | output raw offset=0xF0000 order &
|
---|
42 | clname DATA segaddr=0xF000 segment _DATA &
|
---|
43 | clname CODE &
|
---|
44 | segment _TEXT segaddr=0xF000 offset=0x1600 &
|
---|
45 | segment BIOS32 segaddr=0xF000 offset=0xDE00 &
|
---|
46 | segment BIOSSEG segaddr=0xF000 offset=0xE000 &
|
---|
47 | file { $(OBJS) } &
|
---|
48 | library clibs.lib &
|
---|
49 | disable 1014, 1023, 2120
|
---|
50 |
|
---|
51 | logo.obj : logo.c .autodepend
|
---|
52 | wcc -fo=.obj $(INCLS) $(CFLAGS) $(DEFS) -DVBOX_PC_BIOS $<
|
---|
53 |
|
---|
54 | clean : .symbolic
|
---|
55 | @rm -f *.obj *.err
|
---|
56 | @rm -f vbxbios.bin vbxbios.rom vbxbios.map vbxbios.sym
|
---|