# Generated automatically from Makefile.in by configure.
# Makefile for the BIOS component of bochs

# Copyright Notice
# ================
# BOCHS is Copyright 1994-1999 by Kevin P. Lawton.
#
# BOCHS is commercial software.
#
# For more information, read the file 'LICENSE' included in the bochs
# distribution.  If you don't have access to this file, or have questions
# regarding the licensing policy, the author may be contacted via:
#
#    US Mail:  Kevin Lawton
#              439 Marrett Rd.
#              Lexington, MA 02421-7714
#
#    EMail:    bochs@world.std.com



.SUFFIXES: .cc


SHELL = /bin/sh



CXX = c++
CXXFLAGS = -g -O2

LDFLAGS = 
LIBS = 
RANLIB = ranlib

BX_INCDIRS = -I.. -I../iodev
LOCAL_CXXFLAGS =

#
# -------- end configurable options --------------------------
#


.cc.o:
	$(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $(BX_INCDIRS) $< -o $@


bios: rombios.bin

clean:
	rm -f  *.o
	rm -f  *.a
	rm -f  _rombios_.c

dist-clean: clean bios-clean
	rm -f  Makefile
	rm -f  usage

bios-clean:
	rm -f  rombios.o
	rm -f  *.s
	rm -f  *.ld86
	rm -f  rombios.bin
	rm -f  temp.awk.*
	rm -f  rombios.s.orig
	rm -f  _rombios_.c


rombios.bin: rombios.o
	ld86 -r -s -o rombios.ld86 -i -0 rombios.o
	dd if=rombios.ld86 of=$@ ibs=32 skip=1
	ls -l rombios.bin

rombios.o: rombios.c
	gcc -E rombios.c | tools86 -E > _rombios_.c
	bcc-cc1 -o rombios.s -c -D__i86__ -0 _rombios_.c
	dataseghack
	as86 rombios.s -o rombios.o -u -w -g -0 -j
