#
# Makefile  -  makefile for ANSI display driver
#
# Copyright (C) 1995-1998 Gero Kuhlmann <gero@gkminix.han.de>
#
#  This program 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 of the License, or
#  any later version.
#
#  This program 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 this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#


#
#  Include user configuration:
#
include ../../make.config


#
#  List of source and object files:
#
CSRCS	= 
ASRCS	= ansidrv.S
OBJS	= ansidrv.o
TARGET	= ansidrv.com

FLAGS	= $(UTLFL)


#
#  Include system dependent definitions:
#
include ../../make.defs


#
#  Target rules.
#
all:		$(TARGET)


$(TARGET):	$(OBJS)
	$(LD86) $(LD86FLAGS) -o $(TARGET:%.com=%.b) $(OBJS)
	dd if=$(TARGET:%.com=%.b) of=$(TARGET) bs=256 skip=1
	@cp $(TARGET) ..


#
#  Maintenance rules.
#
dep:
	sed '/\#\#\# Dependencies/q' <Makefile >tmp_make
ifneq ($(strip $(CSRCS)),)
	$(CPP) -DDEP $(BCCFLAGS) $(KERNELINC) -M $(CSRCS) >>tmp_make
endif
ifneq ($(strip $(ASRCS)),)
	$(CPP) -DDEP $(AFLAGS) -M $(ASRCS) >>tmp_make
endif
	mv tmp_make Makefile


.PHONY:	clean distclean realclean

clean:
	rm -f $(TARGET)
	rm -f *.o *.s *.b *.lst *.map *.bak tmp_make

distclean realclean:
	rm -f $(TARGET)
	rm -f *.o *.s *.b *.lst *.map *.bak
	sed '/\#\#\# Dependencies/q' <Makefile >tmp_make
	mv tmp_make Makefile


dummy:


### Dependencies
