######################################################################
##
## 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/project/gwydion/dylan/src/mindy/etc/RCS/Makefile.in,v 1.4 97/05/09 22:47:55 ram Exp $
##
##  This is the makefile for the Mindy load and go executive
##	and any other small programs that might be useful.
##

SHELL	=	/bin/sh

##
## begin autoconf'ed source
##

prefix	=		@prefix@
exec_prefix	=	@exec_prefix@
srcdir	=		@srcdir@

SRCDIR	=		${srcdir}
BINDIR	=		@bindir@
LIBDIR	=		@libdir@/dylan

CC	=		@CC@
CCOPTS	=		@CCOPTS@
CFLAGS	=		$(CCOPTS) -I${SRCDIR} @DEFS@ -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
YACC	=		@YACC@
YFLAGS	=		-d
LEX	=		@LEX@
LFLAGS	=		@LFLAGS@
RANLIB	=		@RANLIB@
INSTALL	=		@INSTALL@
INSTALL_PROGRAM	=	@INSTALL_PROGRAM@
INSTALL_DATA	=	@INSTALL_DATA@

LIBOBJS =		@LIBOBJS@
LIBS	=		../compat/libcompat.a @LIBS@

##
## end of configure written portion
##

OBJS	= mindyexec.o

SRCS	= mindyexec.c

all:	mindyexec

mindyexec: mindyexec.o
	${CC} mindyexec.o ${LIBS} -o ,$@
	mv ,$@ $@

mindyexec.o: ${SRCDIR}/mindyexec.c
	${CC} -c ${CFLAGS} ${SRCDIR}/mindyexec.c

clean:
	rm -f ${OBJS} mindyexec *~ \#* core

realclean:
	rm -f ${OBJS} mindyexec Makefile *~ \#* core
	
install: mindyexec
	${INSTALL_PROGRAM} mindyexec ${BINDIR}/mindyexec

