diff options
author | Volker Ruppert <info@vruppert.de> | 2005-03-06 12:24:22 +0000 |
---|---|---|
committer | Volker Ruppert <info@vruppert.de> | 2005-03-06 12:24:22 +0000 |
commit | 2f46931e75b36b2ce7bfe3065f4258bdf7e7aa71 (patch) | |
tree | 92fec06c5a838d5f0814b63ef4b87cc045709b36 | |
parent | 863a58c95fbe8a85bac831849f194c74d91ddff7 (diff) | |
download | qemu-vgabios-2f46931e75b36b2ce7bfe3065f4258bdf7e7aa71.tar.gz |
- cross compilation support added (patch from Alex Beregszaszi)
-rw-r--r-- | Makefile | 32 |
1 files changed, 18 insertions, 14 deletions
@@ -4,6 +4,10 @@ CC = gcc CFLAGS = -g -O2 -Wall -Wstrict-prototypes LDFLAGS = +GCC = gcc +BCC = bcc +AS86 = as86 + RELEASE = `pwd | sed "s-.*/--"` RELDATE = `date '+%d %b %Y'` RELVERS = `pwd | sed "s-.*/--" | sed "s/vgabios//" | sed "s/-//"` @@ -15,7 +19,7 @@ all: bios cirrus-bios bios: biossums vgabios.bin vgabios.debug.bin -cirrus-bios: vgabios-cirrus.bin vgabios-cirrus.debug.bin +cirrus-bios: vgabios-cirrus.bin vgabios-cirrus.debug.bin clean: /bin/rm -f biossums *.o *.s *.ld86 \ @@ -32,44 +36,44 @@ release: tar czvf ../$(RELEASE).tgz --exclude CVS -C .. $(RELEASE)/ vgabios.bin: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h - gcc -E vgabios.c $(VGABIOS_VERS) -DVBE $(VGABIOS_DATE) > _vgabios_.c - bcc -o vgabios.s -C-c -D__i86__ -S -0 _vgabios_.c + $(GCC) -E vgabios.c $(VGABIOS_VERS) -DVBE $(VGABIOS_DATE) > _vgabios_.c + $(BCC) -o vgabios.s -C-c -D__i86__ -S -0 _vgabios_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios.s > _vgabios_.s - as86 _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt + $(AS86) _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt rm -f _vgabios_.s _vgabios_.c vgabios.s mv vgabios.bin VGABIOS-lgpl-latest.bin ./biossums VGABIOS-lgpl-latest.bin ls -l VGABIOS-lgpl-latest.bin vgabios.debug.bin: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h - gcc -E vgabios.c $(VGABIOS_VERS) -DVBE -DDEBUG $(VGABIOS_DATE) > _vgabios-debug_.c - bcc -o vgabios-debug.s -C-c -D__i86__ -S -0 _vgabios-debug_.c + $(GCC) -E vgabios.c $(VGABIOS_VERS) -DVBE -DDEBUG $(VGABIOS_DATE) > _vgabios-debug_.c + $(BCC) -o vgabios-debug.s -C-c -D__i86__ -S -0 _vgabios-debug_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios-debug.s > _vgabios-debug_.s - as86 _vgabios-debug_.s -b vgabios.debug.bin -u -w- -g -0 -j -O -l vgabios.debug.txt + $(AS86) _vgabios-debug_.s -b vgabios.debug.bin -u -w- -g -0 -j -O -l vgabios.debug.txt rm -f _vgabios-debug_.s _vgabios-debug_.c vgabios-debug.s mv vgabios.debug.bin VGABIOS-lgpl-latest.debug.bin ./biossums VGABIOS-lgpl-latest.debug.bin ls -l VGABIOS-lgpl-latest.debug.bin vgabios-cirrus.bin: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c - gcc -E vgabios.c $(VGABIOS_VERS) -DCIRRUS $(VGABIOS_DATE) > _vgabios-cirrus_.c - bcc -o vgabios-cirrus.s -C-c -D__i86__ -S -0 _vgabios-cirrus_.c + $(GCC) -E vgabios.c $(VGABIOS_VERS) -DCIRRUS $(VGABIOS_DATE) > _vgabios-cirrus_.c + $(BCC) -o vgabios-cirrus.s -C-c -D__i86__ -S -0 _vgabios-cirrus_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus.s > _vgabios-cirrus_.s - as86 _vgabios-cirrus_.s -b vgabios-cirrus.bin -u -w- -g -0 -j -O -l vgabios.cirrus.txt + $(AS86) _vgabios-cirrus_.s -b vgabios-cirrus.bin -u -w- -g -0 -j -O -l vgabios.cirrus.txt rm -f _vgabios-cirrus_.s _vgabios-cirrus_.c vgabios-cirrus.s mv vgabios-cirrus.bin VGABIOS-lgpl-latest.cirrus.bin ./biossums VGABIOS-lgpl-latest.cirrus.bin ls -l VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.debug.bin: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c - gcc -E vgabios.c $(VGABIOS_VERS) -DCIRRUS -DCIRRUS_DEBUG $(VGABIOS_DATE) > _vgabios-cirrus-debug_.c - bcc -o vgabios-cirrus-debug.s -C-c -D__i86__ -S -0 _vgabios-cirrus-debug_.c + $(GCC) -E vgabios.c $(VGABIOS_VERS) -DCIRRUS -DCIRRUS_DEBUG $(VGABIOS_DATE) > _vgabios-cirrus-debug_.c + $(BCC) -o vgabios-cirrus-debug.s -C-c -D__i86__ -S -0 _vgabios-cirrus-debug_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus-debug.s > _vgabios-cirrus-debug_.s - as86 _vgabios-cirrus-debug_.s -b vgabios.cirrus.debug.bin -u -w- -g -0 -j -O -l vgabios.cirrus.debug.txt + $(AS86) _vgabios-cirrus-debug_.s -b vgabios.cirrus.debug.bin -u -w- -g -0 -j -O -l vgabios.cirrus.debug.txt rm -f _vgabios-cirrus-debug_.s _vgabios-cirrus-debug_.c vgabios-cirrus-debug.s mv vgabios.cirrus.debug.bin VGABIOS-lgpl-latest.cirrus.debug.bin ./biossums VGABIOS-lgpl-latest.cirrus.debug.bin ls -l VGABIOS-lgpl-latest.cirrus.debug.bin biossums: biossums.c - gcc -o biossums biossums.c + $(CC) -o biossums biossums.c |