######################################################################
##
## Copyright (c) 1994  Carnegie Mellon University
## All rights reserved.
## 
## Use and copying of this software and preparation of derivative
## works based on this software are permitted, including commercial
## use, provided that the following conditions are observed:
## 
## 1. This copyright notice must be retained in full on any copies
##    and on appropriate parts of any derivative works.
## 2. Documentation (paper or online) accompanying any system that
##    incorporates this software, or any part of it, must acknowledge
##    the contribution of the Gwydion Project at Carnegie Mellon
##    University.
## 
## This software is made available "as is".  Neither the authors nor
## Carnegie Mellon University make any warranty about the software,
## its performance, or its conformity to any specification.
## 
## Bug reports, questions, comments, and suggestions should be sent by
## E-mail to the Internet address "gwydion-bugs@cs.cmu.edu".
##
######################################################################
##
##  $Header: /afs/cs.cmu.edu/project/gwydion/hackers/nkramer/mindy/mindy-1.3/libraries/dylan/RCS/Makefile.in,v 1.7 95/03/13 15:45:45 wlott Exp $
##
##  This is the makefile for the Mindy runtime library, dylan.dbc.
##

SHELL	=	f:\os2\cmd.exe

##
## begin autoconf'ed source
##

prefix	=		c:/bin/langages/mindy
exec_prefix	=	${prefix}
srcdir	=		.

SRCDIR	=		${srcdir}
BINDIR	=		${exec_prefix}/bin
LIBDIR	=		${exec_prefix}/lib/mindy

CC	=		gcc
CCOPTS	=		-g -O4 -finline-functions -Wall
CFLAGS	=		$(CCOPTS) -I${SRCDIR} -DNO_BSTRING_H=1 -DNO_STDLIB_H=1 -DNEED_MATHERR=1 -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
YACC	=		bison -y
YFLAGS	=		-d
LEX	=		flex
LFLAGS	=		-i
RANLIB	=		ranlib
INSTALL =               install -c
INSTALL_PROGRAM =       ${INSTALL}               
INSTALL_DATA    =       ${INSTALL} -m 644        
MKINSTALLDIRS	=	./mkinstalldirs

LIBOBJS =		strerror.o memmove.o strtoul.o matherr.o
LIBS	=		-lm

##
## end of configure written portion
##

MC	=	..\\..\\comp\\mindycomp.exe

MINDYFLAGS = -lDylan

OBJS = exports.dbc cmp.dbc coll.dbc array.dbc vec.dbc string.dbc list.dbc \
	deque.dbc range.dbc stretchy.dbc ext.dbc table.dbc sort.dbc cond.dbc \
	num.dbc ratio.dbc char.dbc func.dbc misc.dbc debug.dbc exit.dbc \
	multilock.dbc semaphore.dbc extern.dbc

dylan.dbc: ${OBJS}
	cat ${OBJS} > $@

exports.dbc: ${SRCDIR}/exports.dylan
	${MC} ${MINDYFLAGS} -o exports.dbc ${SRCDIR}/exports.dylan
cmp.dbc: ${SRCDIR}/cmp.dylan
	${MC} ${MINDYFLAGS} -o cmp.dbc ${SRCDIR}/cmp.dylan
coll.dbc: ${SRCDIR}/coll.dylan
	${MC} ${MINDYFLAGS} -o coll.dbc ${SRCDIR}/coll.dylan
array.dbc: ${SRCDIR}/array.dylan
	${MC} ${MINDYFLAGS} -o array.dbc ${SRCDIR}/array.dylan
vec.dbc: ${SRCDIR}/vec.dylan
	${MC} ${MINDYFLAGS} -o vec.dbc ${SRCDIR}/vec.dylan
string.dbc: ${SRCDIR}/string.dylan
	${MC} ${MINDYFLAGS} -o string.dbc ${SRCDIR}/string.dylan
list.dbc: ${SRCDIR}/list.dylan
	${MC} ${MINDYFLAGS} -o list.dbc ${SRCDIR}/list.dylan
deque.dbc: ${SRCDIR}/deque.dylan
	${MC} ${MINDYFLAGS} -o deque.dbc ${SRCDIR}/deque.dylan
range.dbc: ${SRCDIR}/range.dylan
	${MC} ${MINDYFLAGS} -o range.dbc ${SRCDIR}/range.dylan
stretchy.dbc: ${SRCDIR}/stretchy.dylan
	${MC} ${MINDYFLAGS} -o stretchy.dbc ${SRCDIR}/stretchy.dylan
table.dbc: ${SRCDIR}/table.dylan
	${MC} ${MINDYFLAGS} -o table.dbc ${SRCDIR}/table.dylan
sort.dbc: ${SRCDIR}/sort.dylan
	${MC} ${MINDYFLAGS} -o sort.dbc ${SRCDIR}/sort.dylan
cond.dbc: ${SRCDIR}/cond.dylan
	${MC} ${MINDYFLAGS} -o cond.dbc ${SRCDIR}/cond.dylan
num.dbc: ${SRCDIR}/num.dylan
	${MC} ${MINDYFLAGS} -o num.dbc ${SRCDIR}/num.dylan
ratio.dbc: ${SRCDIR}/ratio.dylan
	${MC} ${MINDYFLAGS} -o ratio.dbc ${SRCDIR}/ratio.dylan
char.dbc: ${SRCDIR}/char.dylan
	${MC} ${MINDYFLAGS} -o char.dbc ${SRCDIR}/char.dylan
func.dbc: ${SRCDIR}/func.dylan
	${MC} ${MINDYFLAGS} -o func.dbc ${SRCDIR}/func.dylan
misc.dbc: ${SRCDIR}/misc.dylan
	${MC} ${MINDYFLAGS} -o misc.dbc ${SRCDIR}/misc.dylan
debug.dbc: ${SRCDIR}/debug.dylan
	${MC} ${MINDYFLAGS} -o debug.dbc ${SRCDIR}/debug.dylan
exit.dbc: ${SRCDIR}/exit.dylan
	${MC} ${MINDYFLAGS} -o exit.dbc ${SRCDIR}/exit.dylan
ext.dbc: ${SRCDIR}/ext.dylan
	${MC} ${MINDYFLAGS} -o ext.dbc ${SRCDIR}/ext.dylan
multilock.dbc: ${SRCDIR}/multilock.dylan
	${MC} ${MINDYFLAGS} -o multilock.dbc ${SRCDIR}/multilock.dylan
semaphore.dbc: ${SRCDIR}/semaphore.dylan
	${MC} ${MINDYFLAGS} -o semaphore.dbc ${SRCDIR}/semaphore.dylan
extern.dbc: ${SRCDIR}/extern.dylan
	${MC} ${MINDYFLAGS} -o extern.dbc ${SRCDIR}/extern.dylan

clean:
	rm -f ${OBJS} dylan.dbc *~ \#* core

realclean:
	rm -f ${OBJS} dylan.dbc Makefile *~ \#* core

install: dylan.dbc
	${INSTALL_DATA} dylan.dbc ${LIBDIR}
