# 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 = cl
CXXFLAGS = /nologo /MT /W3 /Ox /G5 /Ob2 /QA21164 /DNDEBUG /DWIN32 /D_WINDOWS

LDFLAGS = 
LIBS = 
RANLIB = echo

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

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


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


bios: rombios.bin

clean:
	start /WAIT /B del *.o
	start /WAIT /B del *.a
	start /WAIT /B del _rombios_.c

dist-clean: clean bios-clean
	start /WAIT /B del Makefile
	start /WAIT /B del usage

bios-clean:
	start /WAIT /B del rombios.o
	start /WAIT /B del *.s
	start /WAIT /B del *.ld86
	start /WAIT /B del rombios.bin
	start /WAIT /B del temp.awk.*
	start /WAIT /B del rombios.s.orig
	start /WAIT /B del _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
