# 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

# Makefile for the gui component of bochs


.SUFFIXES: .cc


SHELL = /bin/sh



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

LDFLAGS = 
LIBS = 
X_CFLAGS =  -I/usr/X11R6/include
BEOS_CFLAGS = -Wno-multichar
RANLIB = echo

GUI_OBJS_X11  = x.o
GUI_OBJS_BEOS = beos.o
GUI_OBJS_WIN32 = win32.o
GUI_OBJS_MACOS = macintosh.o
GUI_OBJS_NOGUI = nogui.o
GUI_OBJS = gui.o $(GUI_OBJS_WIN32)

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

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

BX_GUI_OBJS = $(GUI_OBJS)


BX_INCLUDES = iodev.h

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



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

beos.o: beos.cc
	$(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $(BX_INCDIRS) $(BEOS_CFLAGS) beos.cc

x.o: x.cc
	$(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $(BX_INCDIRS) $(X_CFLAGS) x.cc

x.cc: gui.h

beos.cc: gui.h


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

dist-clean: clean
	-del Makefile
