# Generated automatically from Makefile.in by configure.
# Copyright (C) 2001  MandrakeSoft S.A.
#
#   MandrakeSoft S.A.
#   43, rue d'Aboukir
#   75002 Paris - France
#   http://www.linux-mandrake.com/
#   http://www.mandrakesoft.com/
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA


.SUFFIXES: .cc


SHELL = /bin/sh



CXX = cl
CXXFLAGS = /nologo /G6 /MT /W3 /GX /O2 /DNDEBUG /DWIN32 /D_WINDOWS

LDFLAGS = 
LIBS = 
X_LIBS =  -L/usr/X11R6/lib
X_PRE_LIBS =  -lSM -lICE
RANLIB = echo



BX_INCDIRS = -I.. -I../instrument/stubs

OBJS = \
	init.o \
	access.o \
	cpu.o resolve32.o fetchdecode.o \
	exception.o \
	ctrl_xfer_pro.o \
	flag_ctrl_pro.o \
	io_pro.o \
	protect_ctrl_pro.o \
	segment_ctrl_pro.o \
	stack_pro.o \
	lazy_flags.o \
	paging.o \
	vm8086.o \
	tasking.o \
	debugstuff.o \
	arith32.o \
	mult32.o \
	data_xfer32.o \
	logical32.o \
	ctrl_xfer32.o \
	stack32.o \
	shift32.o \
	arith8.o \
	mult8.o \
	data_xfer8.o \
	logical8.o \
	ctrl_xfer8.o \
	shift8.o \
	resolve16.o \
	arith16.o \
	mult16.o \
	data_xfer16.o \
	logical16.o \
	ctrl_xfer16.o \
	stack16.o \
	shift16.o \
	bit.o \
	flag_ctrl.o \
	io.o \
	proc_ctrl.o \
	protect_ctrl.o \
	segment_ctrl.o \
	soft_int.o \
	string.o \
	bcd.o

BX_INCLUDES = ../bochs.h ../config.h


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


libcpu.a: $(OBJS)
	-del libcpu.a
	lib.exe /nologo /subsystem:console /machine:I386 /verbose /out:$@ $(OBJS)
	$(RANLIB) libcpu.a

$(OBJS): $(BX_INCLUDES)

clean:
	-del *.o
	-del *.a

dist-clean: clean
	-del Makefile
