Line 7... |
Line 7... |
|
|
|
|
|
|
CXX = g++
|
CXX = g++
|
CXXFLAGS = -g3 -O0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
|
CXXFLAGS = -g3 -O0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
|
|
CC = gcc
|
|
CFLAGS = -g -O2 -Wall -Wstrict-prototypes
|
|
|
LDFLAGS =
|
LDFLAGS =
|
LIBS = -lm
|
LIBS = -lm
|
RANLIB = ranlib
|
RANLIB = ranlib
|
|
|
Line 26... |
Line 28... |
BIOS_BUILD_DATE = "-DBIOS_BUILD_DATE=\"$(BUILDDATE)\""
|
BIOS_BUILD_DATE = "-DBIOS_BUILD_DATE=\"$(BUILDDATE)\""
|
#
|
#
|
# -------- end configurable options --------------------------
|
# -------- end configurable options --------------------------
|
#
|
#
|
|
|
bios: biossums zet-bios
|
RELEASE = `pwd | sed "s-.*/--"`
|
|
RELDATE = `date '+%d %b %Y'`
|
|
RELVERS = `pwd | sed "s-.*/--" | sed "s/vgabios//" | sed "s/-//"`
|
|
|
|
VGABIOS_DATE = "-DVGABIOS_DATE=\"$(RELDATE)\""
|
|
|
|
|
|
bios: bios.bin
|
|
|
|
bios.bin: vgabios.rom ff.rom zet-bios.rom
|
|
cat vgabios.rom ff.rom zet-bios.rom > $@
|
|
|
|
run: bios.bin
|
|
prf
|
|
kotku
|
|
|
|
%.rom: %.out
|
|
out2rom-ml403 < $< > $@
|
|
|
clean:
|
clean:
|
rm -f *.o *.a *.s _rombios*_.c rombios*.txt rombios*.sym
|
rm -f *.o *.a *.s _rombios*_.c rombios*.txt rombios*.sym
|
rm -f usage biossums
|
rm -f usage biossums vgasums
|
|
rm -f *.ld86 \
|
|
temp.awk.* vgabios*.orig _vgabios_* vgabios*.bin vgabios*.txt $(RELEASE).bin *.bak
|
|
|
bios-clean:
|
bios-clean:
|
rm -f zet-bios
|
rm -f zet-bios.out
|
|
|
.cc.o:
|
.cc.o:
|
$(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
|
$(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
|
|
|
zet-bios: rombios.c biossums rombios.h
|
zet-bios.out: rombios.c biossums rombios.h
|
$(GCC32) $(BIOS_BUILD_DATE) -DLEGACY -E -P $< > _rombiosl_.c
|
$(GCC32) $(BIOS_BUILD_DATE) -DLEGACY -E -P $< > _rombiosl_.c
|
$(BCC) -o rombiosl.s -C-c -D__i86__ -0 -S _rombiosl_.c
|
$(BCC) -o rombiosl.s -C-c -D__i86__ -0 -S _rombiosl_.c
|
sed -e 's/^\.text//' -e 's/^\.data//' rombiosl.s > _rombiosl_.s
|
sed -e 's/^\.text//' -e 's/^\.data//' rombiosl.s > _rombiosl_.s
|
$(AS86) _rombiosl_.s -b tmpl.bin -u- -w- -g -0 -j -O -l rombiosl.txt
|
$(AS86) _rombiosl_.s -b tmpl.bin -u- -w- -g -0 -j -O -l rombiosl.txt
|
-perl ${srcdir}/makesym.perl < rombiosl.txt > rombiosl.sym
|
-perl ${srcdir}/makesym.perl < rombiosl.txt > rombiosl.sym
|
mv tmpl.bin $@
|
mv tmpl.bin $@
|
./biossums $@
|
./biossums $@
|
rm -f _rombiosl_.s
|
rm -f _rombiosl_.s
|
|
|
|
vgabios.out: vgabios.c vgabios.h vgatables.h vgasums
|
|
$(GCC) -E vgabios.c $(VGABIOS_VERS) -P $(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
|
|
rm -f _vgabios_.s _vgabios_.c vgabios.s
|
|
mv vgabios.bin $@
|
|
./vgasums $@
|
|
|
|
%.rom: %.out
|
|
out2rom-ml403 < $< > $@
|
|
|
|
%.bin: %.rom
|
|
cat count.rom $< > $@
|
|
|
|
%.rtlrom: %.out
|
|
hexdump -v -e '1/1 "%02X"' -e '"\n"' $< > ../../sim/$@
|
|
|
|
vgasums: vgasums.c
|
|
$(CC) -o vgasums vgasums.c
|
|
|
biossums: biossums.c
|
biossums: biossums.c
|
$(GCC) -o biossums biossums.c
|
$(GCC) -o biossums biossums.c
|
No newline at end of file
|
No newline at end of file
|