# $Id: Makefile.in 3956 2010-01-05 20:56:56Z zacheiss $

SHELL=/bin/sh
@SET_MAKE@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
JAVA_CPPFLAGS=@JAVA_CPPFLAGS@
CFLAGS=@CFLAGS@
DEFS=@DEFS@
ALL_CFLAGS=$(CPPFLAGS) $(JAVA_CPPFLAGS) $(CFLAGS) $(DEFS)
LDFLAGS=@LDFLAGS@
SO_LDFLAGS=@SO_LDFLAGS@
LIBS=@LIBS@
MR_LIBDEP=@MR_LIBDEP@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@

srcdir=@srcdir@
VPATH=@srcdir@
SRCTOP=@top_srcdir@
BUILDTOP=..
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@

CLASSES= mit/moira/AuthenticationError.class mit/moira/Coder.class mit/moira/Delmember.class mit/moira/Kticket.class mit/moira/ListInfo.class mit/moira/Member.class mit/moira/Moira.class mit/moira/MoiraConnectInternal.class mit/moira/MoiraException.class mit/moira/MoiraServlet.class
OBJ=     moirai.o
SOBJ=    mit/moira/libmoirajava.so
SOBJG=   mit/moira/libmoirajava_g.so
JHEADER= mit_moira_MoiraConnectInternal.h

TARGET=	 $(SOBJ)

.c.o:
	$(CC) -c $(ALL_CFLAGS) $<

all: $(TARGET)

clean:
	rm -f $(CLASSES) $(OBJ) $(SOBJ) $(SOBJG) $(JHEADER)

cleandir distclean: clean
	rm -f Makefile

depend:

$(SOBJ): $(JHEADER) $(OBJ)
	$(CC) $(SO_LDFLAGS) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
	cp -p $@ $(SOBJG)

$(JHEADER): java
	javah -jni mit.moira.MoiraConnectInternal

java:
	javac -classpath /mit/moiradev/java/servlet.jar mit/moira/*.java

