######################################################################
##
## 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/string-ext/RCS/Makefile.in,v 1.1 94/11/08 22:55:10 nkramer Exp $
##
##  This is the makefile for the Mindy string extensions library, 
##  string-extensions.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 = -lString-extensions

OBJS = exports.dbc character-type.dbc conversions.dbc string-hacking.dbc \
       do-replacement.dbc parse-string.dbc parse.dbc match.dbc           \
       finite-automaton.dbc interface.dbc substring-search.dbc

string-extensions.dbc: ${OBJS}
	cat ${OBJS} > $@


exports.dbc: ${SRCDIR}/exports.dylan
	${MC} ${MINDYFLAGS} -o exports.dbc ${SRCDIR}/exports.dylan

character-type.dbc: ${SRCDIR}/character-type.dylan
	${MC} ${MINDYFLAGS} -o character-type.dbc ${SRCDIR}/character-type.dylan

conversions.dbc: ${SRCDIR}/conversions.dylan
	${MC} ${MINDYFLAGS} -o conversions.dbc ${SRCDIR}/conversions.dylan

string-hacking.dbc: ${SRCDIR}/string-hacking.dylan
	${MC} ${MINDYFLAGS} -o string-hacking.dbc ${SRCDIR}/string-hacking.dylan

do-replacement.dbc: ${SRCDIR}/do-replacement.dylan
	${MC} ${MINDYFLAGS} -o do-replacement.dbc ${SRCDIR}/do-replacement.dylan

parse-string.dbc: ${SRCDIR}/parse-string.dylan
	${MC} ${MINDYFLAGS} -o parse-string.dbc ${SRCDIR}/parse-string.dylan

parse.dbc: ${SRCDIR}/parse.dylan
	${MC} ${MINDYFLAGS} -o parse.dbc ${SRCDIR}/parse.dylan

match.dbc: ${SRCDIR}/match.dylan
	${MC} ${MINDYFLAGS} -o match.dbc ${SRCDIR}/match.dylan

finite-automaton.dbc: ${SRCDIR}/finite-automaton.dylan
	${MC} ${MINDYFLAGS} -o finite-automaton.dbc ${SRCDIR}/finite-automaton.dylan

interface.dbc: ${SRCDIR}/interface.dylan
	${MC} ${MINDYFLAGS} -o interface.dbc ${SRCDIR}/interface.dylan

substring-search.dbc: ${SRCDIR}/substring-search.dylan
	${MC} ${MINDYFLAGS} -o substring-search.dbc ${SRCDIR}/substring-search.dylan

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

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

install: string-extensions.dbc
	${INSTALL_DATA} string-extensions.dbc ${LIBDIR}
