#******************************************************************************
#*									      *
#*	(C) 1993 by K. Ballueder					      *
#*									      *
#*	See README and COPYING for details.				      *
#*									      *
#*	Please feel free to contact me:					      *
#*		kballued@charon.physik.uni-osnabrueck.de		      *
#*		kballued@jupiter.rz.uni-osnabrueck.de			      *
#*									      *
#*******************************************************************************
#
#	Makefile for Bdash
#
include ../Makeopts
Cflags	= -I../include -I../ooc_src 
H	= linux_gl.h dos_bgi.h 
C	= graphic.c linux_gl.c dos_bgi.c 
O	= graphic.o dos_bgi.o linux_gl.o

graphic.a:	$O
		ar rcs $@ $O
clean:	
		rm -f *.a $O

depend dep:
	echo >.depend~
	for i in $C;do $(CC) $(CFLAGS) $(Cflags) -M $$i ;done>>.depend~
	mv .depend~ .depend
.depend:
	touch .depend
include .depend
###	remove all implied rules:
.SUFFIXES:
###	and generate our own rules:
%.h:	%.d
	$(OOC) $(OOCFLAGS) $(Oocflags) $* -h >$@ 
%.r:	%.d
	$(OOC) $(OOCFLAGS) $(Oocflags) $* -r >$@
%.c:	%.d %.dc %.h %.r 
	$(OOC) $(OOCFLAGS) $(Oocflags) $* $*.dc >$@
%.o:	%.c
	$(CC) -c $(CFLAGS) $(Cflags) -o $@ $< 
