/* $Id: Imakefile,v 1.3 93/01/29 13:30:32 drew Exp $ */
#include <xerion.rules>
#include <xerion.cf>

 LIB = itf
HDRS = alias.h arg-actual.h arg-desc.h arg-print.h arg-store.h \
	argf.h assert.h bind.h enum.h field-access.h \
	hash-table.h help.h itf-argf.h itf.h lex.h loop.h mem.h option.h \
	range.h stack.h stream.h trace.h utils.h varsub.h \
	version.h warn.h
#ifdef YaccBroken
OBJS = alias.o arg-actual.o arg-desc.o arg-print.o arg-store.o \
	background.o bind-enter.o bind-print.o bind-var.o \
	hash-table.o itf-argf.o itf.o \
 	lex.o loop.o mem.o option.o range.o stack.o stream.o \
	trace.o utils.o varsub.o version.o warn.o
#else
OBJS = alias.o arg-actual.o arg-desc.o arg-print.o arg-store.o \
	background.o bind-enter.o bind-print.o bind-var.o \
	calc.o hash-table.o itf-argf.o itf.o \
 	lex.o loop.o mem.o option.o range.o stack.o stream.o \
	trace.o utils.o varsub.o version.o warn.o
#endif
SRCS = $(OBJS:.o=.c)

/* make the library */
NormalLibraryTarget($(LIB)$(LIBEXT),$(OBJS))
BuildLibrary(all,$(LIB)$(LIBEXT),..,./$(LIB))

/* install library and headers */
InstallLibrary($(LIB)$(LIBEXT),$(LIB_DEST))
InstallMultipleDestFlags(install,$(HDRS),$(INC_DEST)/xerion,-m 0644) 

/* includes necessary for the build, (softlinked somewhere) */
BuildIncludes($(HDRS),xerion,..)

DependTarget()

#ifndef YaccBroken
depend:: calc.c
#endif
