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

#  Copyright (C) 1994-2000  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


.PHONY: all clean dist-clean

.SUFFIXES: .cc


SHELL = /bin/sh



CXX = c++
CXXFLAGS = -g -O2 -Wall -Wstrict-prototypes

LDFLAGS = 
LIBS = 
RANLIB = ranlib

srcdir	= .

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

SB16_DUMMY_OBJS = sb16.o
SB16_LINUX_OBJS = sb16.o soundlnx.o
SB16_WIN_OBJS   = sb16.o soundwin.o



BX_INCLUDES = iodev.h

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



all: serial.so parallel.so keyboard.so cmos.so dma.so \
		floppy.so harddrv.so vga.so system.so

serial.so: serial.o
	$(CXX) -shared -o serial.so serial.o

parallel.so: parallel.o
	$(CXX) -shared -o parallel.so parallel.o

keyboard.so: keyboard.o
	$(CXX) -shared -o keyboard.so keyboard.o

cmos.so: cmos.o
	$(CXX) -shared -o cmos.so cmos.o

dma.so: dma.o
	$(CXX) -shared -o dma.so dma.o

floppy.so: floppy.o
	$(CXX) -shared -o floppy.so floppy.o

harddrv.so: harddrv.o cdrom.o
	$(CXX) -shared -o harddrv.so harddrv.o cdrom.o

vga.so: vga.o
	$(CXX) -shared -o vga.so vga.o

system.so: system.o
	$(CXX) -shared -o system.so system.o

clean:
	rm -f  *.o *.so

dist-clean: clean
	rm -f  Makefile

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