# Copywrite 1994 by Kevin P. Lawton 

# Makefile for the iodev component of bochs


#This file is part of the IODEV (Input Output DEVices) component of BOCHS.
#
#The IODEV component is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2, or (at your option)
#any later version.
#
#The IODEV component 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 General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with the IODEV component; see the file COPYING.  If not, write to
#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.




include ../Makefile.config


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

BX_IODEV_OBJS = \
              reg_handlers.o \
              io_pic.o \
              io_pit.o \
              io_unmapped.o \
              io_cmos.o \
              io_dma.o \
              io_floppy.o \
              io_harddrv.o \
              io_keyboard.o \
              io_parallel.o \
              io_serial.o \
              io_mda.o \
              bios.o

BX_OBJS     = $(BX_IODEV_OBJS)

BX_INCLUDES = iodev.h

.c.o:
	$(BX_CC) -c $(BX_CFLAGS) $(BX_INCDIRS) $<



libbx_iodev.a: $(BX_OBJS)
	-rm -f libbx_iodev.a
	ar rv libbx_iodev.a $(BX_IODEV_OBJS)
	$(BX_RANLIB) libbx_iodev.a

$(BX_OBJS): $(BX_INCLUDES)

io_mda.o: io_mda.c
	$(BX_CC) -c $(BX_CFLAGS) $(BX_CURSES_INC) $(BX_INCDIRS) $<

backups:
	tar cvf - *.c *.h *.doc Makefile COPYING NOTES README | \
          gzip -c > io`date "+%m%d%H"`.tgz
	-mmd b:/bochs
	mcopy io`date "+%m%d%H"`.tgz b:/bochs
	mdir b:/bochs

clean:
	rm -f *~ *.o \#*\# libbx_iodev.a

