# $Id: Makefile.in,v 1.1 1999-12-08 22:05:02 danw Exp $

SHELL=/bin/sh
INSTALL=@INSTALL@
RANLIB=@RANLIB@
VPATH=@srcdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
DEFS=@DEFS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
OBJS=globalmessage_err.o

all: libgms.a

libgms.a: ${OBJS}
	ar cru $@ ${OBJS}
	${RANLIB} $@

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

globalmessage_err.c globalmessage_err.h: globalmessage_err.et
	compile_et ${srcdir}/globalmessage_err.et

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
	${INSTALL} -m 644 libgms.a ${DESTDIR}${libdir}
	${RANLIB} ${DESTDIR}${libdir}/libgms.a
	chmod u-w ${DESTDIR}${libdir}/libgms.a
	${INSTALL} -m 444 ${srcdir}/globalmessage.h ${DESTDIR}/${includedir}
	${INSTALL} -m 444 globalmessage_err.h ${DESTDIR}/${includedir}

clean:
	rm -f ${OBJS} globalmessage_err.c globalmessage_err.h libgms.a

distclean: clean
	rm -f config.cache config.log config.status Makefile
