# $Id: Makefile.in,v 1.1.1.3 1999/05/21 20:15:34 danw Exp $

SHELL=/bin/sh

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
RANLIB=@RANLIB@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
datadir=@datadir@
libdir=@libdir@
includedir=@includedir@
appdefdir=${datadir}/X11/app-defaults
bitmapdir=${includedir}/X11/bitmaps

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
X_CFLAGS=@X_CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${X_CFLAGS} ${DEFS} -DSHAPE \
	-DHOSTTYPE=\"${HOSTTYPE}\" -DAPPDEFDIR=\"${appdefdir}\" \
	-DBITMAPDIR=\"${bitmapdir}\"

OBJS=	AClock.o Arrow.o Button.o DClock.o Drawing.o Form.o Jets.o \
	Label.o Menu.o ScrollBar.o StrToBool.o StrToDirect.o \
	StrToJust.o StrToOrient.o StrToPixmap.o StrToXColor.o \
	StrToXFont.o TextDisplay.o Tree.o VaCreateJet.o Window.o \
	hash.o registerCB.o warn.o xselect.o

all: libXj.a

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

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

sintable.h: sintable
	rm -f $@
	./sintable > $@

sintable: sintable.o
	${CC} ${LDFLAGS} -o $@ sintable.o ${LIBS} -lm

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 644 libXj.a ${DESTDIR}${libdir}
	${RANLIB} ${DESTDIR}${libdir}/libXj.a
	chmod u-w ${DESTDIR}${libdir}/libXj.a
	${INSTALL} -m 444 AClock.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Arrow.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Button.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 DClock.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Drawing.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Form.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Jets.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Label.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Menu.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 ScrollBar.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 TextDisplay.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Tree.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 Window.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 hash.h ${DESTDIR}${includedir}/Jets
	${INSTALL} -m 444 warn.h ${DESTDIR}${includedir}/Jets

clean:
	rm -f ${OBJS} sintable.o sintable libXj.a

${OBJS} sintable.o: mit-copyright.h Jets.h
AClock.o: AClock.h sintable.h
Button.o: Button.h
DClock.o: DClock.h
Drawing.o: Drawing.h
Form.o: Form.h
Jets.o: hash.h
Label.o: Label.h
Menu.o: Window.h Menu.h hash.h Button.h warn.h
ScrollBar.o: ScrollBar.h
StrToXFont.o: hash.h
TextDisplay.o: TextDisplay.h xselect.h
Tree.o: Tree.h
VaCreateJet.o: VaCreateJet.c
Window.o: Window.h
hash.o: hash.h
registerCB.o: hash.h
sintable.o: AClock.h
warn.o: Window.h Button.h Label.h Form.h warn.h
xselect.o: xselect.h
