# Generated automatically from Makefile.in by configure.
######################################################################
##
## Copyright (c) 1994  Carnegie Mellon University
## Copyright (c) 1998, 1999, 2000  Gwydion Dylan Maintainers
## 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, and the Gwydion Dylan Maintainers.
## 
## 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 should be sent to <gd-bugs@gwydiondylan.org>; questions,
## comments and suggestions are welcome at <gd-hackers@gwydiondylan.org>.
## Also, see http://www.gwydiondylan.org/ for updates and documentation. 
##
######################################################################
##
##  $Header: /home/cvsroot/gd/src/mindy/comp/Makefile.in,v 1.8 2000/10/31 14:18:48 dauclair Exp $
##
##  This is the makefile for the Mindy byte-compiler.
##

SHELL	=	/bin/sh

##
## begin autoconf'ed source
##

prefix	=		/usr
exec_prefix	=	${prefix}
exe_ext = 
srcdir	=		/home/bfulgham/packages/gwydion-dylan/gwydion-dylan-2.3.8pre1/mindy/comp

SRCDIR	=		${srcdir}
CONFIGDIR =		/home/bfulgham/packages/gwydion-dylan/gwydion-dylan-2.3.8pre1
BINDIR	=		${exec_prefix}/bin
LIBDIR	=		${exec_prefix}/lib/dylan
DESTDIR =

CC	=		gcc
CCOPTS	=		-g -O2 -Wall
CFLAGS	=		$(CCOPTS) -I${SRCDIR} -I${CONFIGDIR} -DHAVE_CONFIG_H -DBINDIR=\"${BINDIR}\" -DLIBDIR=\"${LIBDIR}\"
CFLAGS_NO_WERROR =      `echo $(CFLAGS) | sed 's/-Werror//g'`
YACC	=		bison -y
YFLAGS	=		-d
LEX	=		flex
LFLAGS	=		-i
RANLIB	=		ranlib
INSTALL	=		/usr/bin/install -c
INSTALL_PROGRAM	=	${INSTALL}
INSTALL_DATA	=	${INSTALL} -m 644

LIBOBJS =		 matherr.o shl.o
LIBS	=		../compat/libcompat.a  -lm -lreadline -ldl

##
## end of configure written portion
##

OBJS = mindycomp.o parser-tab.o lexer-tab.o src.o sym.o print.o expand.o \
	literal.o info.o lose.o lexenv.o envanal.o compile.o header.o \
	dump.o free.o dup.o feature.o

SRCS = mindycomp.c parser-tab.c lexer-tab.c src.c sym.c print.c expand.c \
	literal.c info.c lose.c lexenv.c envanal.c compile.c header.c \
	dump.c free.c dup.c feature.c

mindycomp$(exe_ext): ${OBJS}
	${CC} ${OBJS} -DVERSION=\""`/bin/date`"\" ${SRCDIR}/version.c ${LIBS} -o ,$@
	mv ,$@ $@

${SRCDIR}/parser-tab.c: ${SRCDIR}/parser.y
	${YACC} -d ${SRCDIR}/parser.y
	mv y.tab.c ${SRCDIR}/parser-tab.c
	mv y.tab.h ${SRCDIR}/parser-tab.h

${SRCDIR}/parser-tab.h: ${SRCDIR}/parser-tab.c

${SRCDIR}/lexer-tab.c: ${SRCDIR}/lexer.l
	${LEX} -t ${LFLAGS} ${SRCDIR}/lexer.l > ${SRCDIR}/lexer-tab.c

clean:
	rm -f ${OBJS} version.o mindycomp$(exe_ext) *~ \#* core

realclean:
	rm -f ${OBJS} version.o parser-tab.c parser-tab.h lexer-tab.c mindycomp$(exe_ext) Makefile *~ \#* core

install: mindycomp$(exe_ext)
	${INSTALL_PROGRAM} mindycomp$(exe_ext) ${DESTDIR}${BINDIR}/mindycomp$(exe_ext)

# It's easiest to generate this part by machine.
# Try gcc -MM -E *.c | perl ../etc/generate-depends

compile.o:  ${SRCDIR}/compile.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
              ${SRCDIR}/src.h ${SRCDIR}/dump.h ${SRCDIR}/lexenv.h \
              ${SRCDIR}/envanal.h ${SRCDIR}/sym.h ${SRCDIR}/literal.h \
              ${SRCDIR}/compile.h ${SRCDIR}/byteops.h ${SRCDIR}/info.h \
              ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/compile.c

dump.o:  ${SRCDIR}/dump.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/../compat/std-os.h \
           ${SRCDIR}/mindycomp.h ${SRCDIR}/src.h ${SRCDIR}/literal.h \
           ${SRCDIR}/sym.h ${SRCDIR}/fileops.h ${SRCDIR}/compile.h \
           ${SRCDIR}/dump.h ${SRCDIR}/version.h ${SRCDIR}/envanal.h \
           ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/dump.c

dup.o:  ${SRCDIR}/dup.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
          ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/free.h \
          ${SRCDIR}/lose.h ${SRCDIR}/dup.h
	${CC} -c ${CFLAGS} ${SRCDIR}/dup.c

envanal.o:  ${SRCDIR}/envanal.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
              ${SRCDIR}/src.h ${SRCDIR}/lexenv.h ${SRCDIR}/envanal.h \
              ${SRCDIR}/sym.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/envanal.c

expand.o:  ${SRCDIR}/expand.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
             ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/dup.h \
             ${SRCDIR}/free.h ${SRCDIR}/sym.h ${SRCDIR}/expand.h \
             ${SRCDIR}/info.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/expand.c

feature.o:  ${SRCDIR}/feature.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
              ${SRCDIR}/feature.h ${SRCDIR}/lexer.h ${SRCDIR}/src.h \
              ${SRCDIR}/parser-tab.h ${SRCDIR}/sym.h
	${CC} -c ${CFLAGS} ${SRCDIR}/feature.c

free.o:  ${SRCDIR}/free.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
           ${SRCDIR}/src.h ${SRCDIR}/literal.h ${SRCDIR}/free.h \
           ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/free.c

header.o:  ${SRCDIR}/header.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
             ${SRCDIR}/header.h
	${CC} -c ${CFLAGS} ${SRCDIR}/header.c

info.o:  ${SRCDIR}/info.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
           ${SRCDIR}/src.h ${SRCDIR}/sym.h ${SRCDIR}/info.h
	${CC} -c ${CFLAGS} ${SRCDIR}/info.c

lexenv.o:  ${SRCDIR}/lexenv.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
             ${SRCDIR}/src.h ${SRCDIR}/lexenv.h
	${CC} -c ${CFLAGS} ${SRCDIR}/lexenv.c

lexer-tab.o:  ${SRCDIR}/lexer-tab.c ${SRCDIR}/lexer.h ${SRCDIR}/src.h \
                ${SRCDIR}/parser-tab.h
	${CC} -c ${CFLAGS_NO_WERROR} ${SRCDIR}/lexer-tab.c

literal.o:  ${SRCDIR}/literal.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
              ${SRCDIR}/literal.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/literal.c

lose.o:  ${SRCDIR}/lose.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/lose.c

mindycomp.o:  ${SRCDIR}/mindycomp.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/../compat/std-os.h \
                ${SRCDIR}/mindycomp.h ${SRCDIR}/parser.h ${SRCDIR}/src.h \
                ${SRCDIR}/print.h ${SRCDIR}/expand.h ${SRCDIR}/envanal.h \
                ${SRCDIR}/lexer.h ${SRCDIR}/header.h ${SRCDIR}/sym.h \
                ${SRCDIR}/info.h ${SRCDIR}/compile.h ${SRCDIR}/dump.h \
                ${SRCDIR}/feature.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/mindycomp.c

parser-tab.o:  ${SRCDIR}/parser-tab.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
                 ${SRCDIR}/header.h ${SRCDIR}/parser.h ${SRCDIR}/lexer.h \
                 ${SRCDIR}/feature.h ${SRCDIR}/literal.h ${SRCDIR}/src.h \
                 ${SRCDIR}/sym.h
	${CC} -c ${CFLAGS} ${SRCDIR}/parser-tab.c

print.o:  ${SRCDIR}/print.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
            ${SRCDIR}/src.h ${SRCDIR}/sym.h ${SRCDIR}/literal.h \
            ${SRCDIR}/print.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/print.c

src.o:  ${SRCDIR}/src.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
          ${SRCDIR}/sym.h ${SRCDIR}/lexer.h ${SRCDIR}/literal.h \
          ${SRCDIR}/src.h ${SRCDIR}/info.h ${SRCDIR}/lose.h
	${CC} -c ${CFLAGS} ${SRCDIR}/src.c

sym.o:  ${SRCDIR}/sym.c ${SRCDIR}/../compat/std-c.h ${SRCDIR}/mindycomp.h \
          ${SRCDIR}/sym.h
	${CC} -c ${CFLAGS} ${SRCDIR}/sym.c

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

