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

# Copyright 1994-2000 by Kevin P. Lawton.
#
# 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 = c++
CXXFLAGS = -g -O2 -Wall -Wstrict-prototypes

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

srcdir	= .

GUI_OBJS_X11    = x.o
GUI_OBJS_BEOS   = beos.o
GUI_OBJS_WIN32  = win32.o
GUI_OBJS_NOGUI  = nogui.o
GUI_OBJS_SDL    = sdl.o
GUI_OBJS_CURSES = curses.o
GUI_OBJS = gui.o $(GUI_OBJS_X11)

BX_INCDIRS = -I$(srcdir)/../.. -I$(srcdir)/..
LOCAL_CXXFLAGS =

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

BX_GUI_OBJS = $(GUI_OBJS)


BX_INCLUDES = iodev.h

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



libgui.a: $(BX_GUI_OBJS)
	rm -f  libgui.a
	ld -o libgui.a -r $(BX_GUI_OBJS)

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

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

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

x.cc: gui.h

beos.cc: gui.h


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

dist-clean: clean
	rm -f  Makefile

Makefile:       Makefile.in ../../config.status
	cd ../../; CONFIG_FILES=user/gui/Makefile CONFIG_HEADERS= $(SHELL) config.status
