#
# Copyright (c) 1995, 1996, 1997, 1999 The University of Utah and
# the Computer Systems Laboratory at the University of Utah (CSL).
#
# This file is part of Flick, the Flexible IDL Compiler Kit.
#
# Flick is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Flick is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Flick; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place #330, Boston, MA 02111, USA.
#

#### Start of configuration section ####

SRCDIR	= ../..
#OBJDIR	= @top_objdir@
OBJDIR	= ../..

prefix = /usr/local
exec_prefix = ${prefix}

include $(OBJDIR)/GNUmakeconf

##### End of configuration section #####

TARGET = flick-c-fe-mig
SECTIONS += fe/mig

MOM_LIBS += flick-pres_c flick-cast flick-mint flick-aoi flick-meta \
	flick-compiler
# XXX --- We don't use AOI, but `-lflick-pres_c' requires it.  See `pres_c.x'
# to see why, and why it's gross gross gross!

GEN_OBJFILES += parser.o lexxer.o

ifeq (yes,yes)
DEFINES += -DHAVE_STRERROR
endif

ifneq ($(strip -lfl),)
# `configure' successfully found the `lex/flex' library.
LIBS += -lfl
else
# `configure' did not find the library --- default to `-ll'.
LIBS += -ll
endif

CLEAN_FILES += parser.c parser.o parser.h lexxer.c lexxer.o

include $(SRCDIR)/GNUmakerules.bin

# It may be possible that the auto dependency detection may miss this, since
# lexxer.c is a generated file, and not available beforehand.
lexxer.o: parser.h

# Also install a little MIG-lookalike shell script
# all: flick-mig
# 
# flick-mig: flick-mig.sh
#	sed -e 's,@FLICK_C_PDL@,$(INSTALL_BINDIR)/$(PROGRAM_PREFIX)flick-c-pdl$(PROGRAM_SUFFIX),g' \
#		$< >$@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@



syntax highlighted by Code2HTML, v. 0.9.1