4
CFLAGS = -g -O2 -Wall -Wstrict-prototypes
11
RELEASE = `pwd | sed "s-.*/--"`
12
RELDATE = `date '+%d %b %Y'`
13
RELVERS = `pwd | sed "s-.*/--" | sed "s/vgabios//" | sed "s/-//"`
15
VGABIOS_DATE = "-DVGABIOS_DATE=\"$(RELDATE)\""
19
bios: vgabios.bin vgabios.debug.bin
21
cirrus-bios: vgabios-cirrus.bin vgabios-cirrus.debug.bin
24
/bin/rm -f biossums vbetables-gen vbetables.h *.o *.s *.ld86 \
25
temp.awk.* vgabios*.orig _vgabios_* _vgabios-debug_* core vgabios*.bin vgabios*.txt $(RELEASE).bin *.bak
30
VGA_FILES := vgabios.c vgabios.h vgafonts.h vgatables.h
31
VBE_FILES := vbe.h vbe.c vbetables.h
34
vgabios.bin : VGAFLAGS := -DVBE -DPCI_VID=0x1234
35
vgabios.debug.bin : VGAFLAGS := -DVBE -DPCI_VID=0x1234 -DDEBUG
36
vgabios-cirrus.bin : VGAFLAGS := -DCIRRUS -DPCIBIOS
37
vgabios-cirrus.debug.bin : VGAFLAGS := -DCIRRUS -DPCIBIOS -DCIRRUS_DEBUG
40
vgabios.bin : DISTNAME := VGABIOS-lgpl-latest.bin
41
vgabios.debug.bin : DISTNAME := VGABIOS-lgpl-latest.debug.bin
42
vgabios-cirrus.bin : DISTNAME := VGABIOS-lgpl-latest.cirrus.bin
43
vgabios-cirrus.debug.bin : DISTNAME := VGABIOS-lgpl-latest.cirrus.debug.bin
46
vgabios.bin : $(VGA_FILES) $(VBE_FILES) biossums
47
vgabios.debug.bin : $(VGA_FILES) $(VBE_FILES) biossums
48
vgabios-cirrus.bin : $(VGA_FILES) clext.c biossums
49
vgabios-cirrus.debug.bin : $(VGA_FILES) clext.c biossums
53
$(GCC) -E -P vgabios.c $(VGABIOS_VERS) $(VGAFLAGS) $(VGABIOS_DATE) > _$*_.c
54
$(BCC) -o $*.s -C-c -D__i86__ -S -0 _$*_.c
55
sed -e 's/^\.text//' -e 's/^\.data//' $*.s > _$*_.s
56
$(AS86) _$*_.s -b $*.bin -u -w- -g -0 -j -O -l $*.txt
57
rm -f _$*_.s _$*_.c $*.s
59
./biossums $(DISTNAME)
63
VGABIOS_VERS=\"-DVGABIOS_VERS=\\\"$(RELVERS)\\\"\" make bios cirrus-bios
64
/bin/rm -f *.o *.s *.ld86 \
65
temp.awk.* vgabios.*.orig _vgabios_.*.c core *.bak .#*
66
cp VGABIOS-lgpl-latest.bin ../$(RELEASE).bin
67
cp VGABIOS-lgpl-latest.debug.bin ../$(RELEASE).debug.bin
68
cp VGABIOS-lgpl-latest.cirrus.bin ../$(RELEASE).cirrus.bin
69
cp VGABIOS-lgpl-latest.cirrus.debug.bin ../$(RELEASE).cirrus.debug.bin
70
tar czvf ../$(RELEASE).tgz --exclude CVS -C .. $(RELEASE)/
73
$(CC) -o biossums biossums.c
75
vbetables-gen: vbetables-gen.c
76
$(CC) -o vbetables-gen vbetables-gen.c
78
vbetables.h: vbetables-gen