4 CFLAGS
= -g
-O2
-Wall
-Wstrict-prototypes
7 RELEASE
= `pwd | sed "s-.*/--"`
8 RELDATE
= `date '+%d %b %Y'`
9 RELVERS
= `pwd | sed "s-.*/--" | sed "s/vgabios//" | sed "s/-//"`
11 VGABIOS_DATE
= "-DVGABIOS_DATE=\"$(RELDATE)\""
16 bios
: vgabios.bin vgabios.debug.bin
18 cirrus-bios
: vgabios-cirrus.bin vgabios-cirrus.debug.bin
21 /bin
/rm -f
*.o
*.s
*.ld86 \
22 temp.awk.
* vgabios
*.orig _vgabios_
* _vgabios-debug_
* core vgabios
*.bin vgabios
*.txt
$(RELEASE
).bin
*.bak
27 VGABIOS_VERS
=\"-DVGABIOS_VERS
=\\\"$(RELVERS
)\\\"\" make bios
28 /bin
/rm -f
*.o
*.s
*.ld86 \
29 temp.awk.
* vgabios.
*.orig _vgabios_.
*.c core
*.bak .
#*
30 cp VGABIOS-lgpl-latest.bin ..
/$(RELEASE
).bin
31 cp VGABIOS-lgpl-latest.debug.bin ..
/$(RELEASE
).debug.bin
32 tar czvf ..
/$(RELEASE
).tgz
--exclude CVS
-C ..
$(RELEASE
)/
34 vgabios.bin
: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h
35 gcc
-E vgabios.c
$(VGABIOS_VERS
) -DVBE
$(VGABIOS_DATE
) > _vgabios_.c
36 bcc
-o vgabios.s
-C-c
-D__i86__
-S
-0 _vgabios_.c
37 sed
-e
's/^\.text//' -e
's/^\.data//' vgabios.s
> _vgabios_.s
38 as86 _vgabios_.s
-b vgabios.bin
-u
-w-
-g
-0 -j
-O
-l vgabios.txt
39 rm -f _vgabios_.s _vgabios_.c vgabios.s
40 mv vgabios.bin VGABIOS-lgpl-latest.bin
41 ls
-l VGABIOS-lgpl-latest.bin
43 vgabios.debug.bin
: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h
44 gcc
-E vgabios.c
$(VGABIOS_VERS
) -DVBE
-DDEBUG
$(VGABIOS_DATE
) > _vgabios-debug_.c
45 bcc
-o vgabios-debug.s
-C-c
-D__i86__
-S
-0 _vgabios-debug_.c
46 sed
-e
's/^\.text//' -e
's/^\.data//' vgabios-debug.s
> _vgabios-debug_.s
47 as86 _vgabios-debug_.s
-b vgabios.debug.bin
-u
-w-
-g
-0 -j
-O
-l vgabios.debug.txt
48 rm -f _vgabios-debug_.s _vgabios-debug_.c vgabios-debug.s
49 mv vgabios.debug.bin VGABIOS-lgpl-latest.debug.bin
50 ls
-l VGABIOS-lgpl-latest.debug.bin
52 vgabios-cirrus.bin
: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c
53 gcc
-E vgabios.c
$(VGABIOS_VERS
) -DCIRRUS
$(VGABIOS_DATE
) > _vgabios-cirrus_.c
54 bcc
-o vgabios-cirrus.s
-C-c
-D__i86__
-S
-0 _vgabios-cirrus_.c
55 sed
-e
's/^\.text//' -e
's/^\.data//' vgabios-cirrus.s
> _vgabios-cirrus_.s
56 as86 _vgabios-cirrus_.s
-b vgabios-cirrus.bin
-u
-w-
-g
-0 -j
-O
-l vgabios.cirrus.txt
57 rm -f _vgabios-cirrus_.s _vgabios-cirrus_.c vgabios-cirrus.s
58 mv vgabios-cirrus.bin VGABIOS-lgpl-latest.cirrus.bin
59 ls
-l VGABIOS-lgpl-latest.cirrus.bin
61 vgabios-cirrus.debug.bin
: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c
62 gcc
-E vgabios.c
$(VGABIOS_VERS
) -DCIRRUS
-DCIRRUS_DEBUG
$(VGABIOS_DATE
) > _vgabios-cirrus-debug_.c
63 bcc
-o vgabios-cirrus-debug.s
-C-c
-D__i86__
-S
-0 _vgabios-cirrus-debug_.c
64 sed
-e
's/^\.text//' -e
's/^\.data//' vgabios-cirrus-debug.s
> _vgabios-cirrus-debug_.s
65 as86 _vgabios-cirrus-debug_.s
-b vgabios.cirrus.debug.bin
-u
-w-
-g
-0 -j
-O
-l vgabios.cirrus.debug.txt
66 rm -f _vgabios-cirrus-debug_.s _vgabios-cirrus-debug_.c vgabios-cirrus-debug.s
67 mv vgabios.cirrus.debug.bin VGABIOS-lgpl-latest.cirrus.debug.bin
68 ls
-l VGABIOS-lgpl-latest.cirrus.debug.bin