SHELL	= /bin/sh
SRCS	= xsasl_server.c xsasl_cyrus_server.c xsasl_cyrus_log.c \
	xsasl_cyrus_security.c xsasl_client.c xsasl_cyrus_client.c \
	xsasl_dovecot_server.c
OBJS	= xsasl_server.o xsasl_cyrus_server.o xsasl_cyrus_log.o \
	xsasl_cyrus_security.o xsasl_client.o xsasl_cyrus_client.o \
	xsasl_dovecot_server.o
HDRS	= xsasl.h
TESTSRC	= 
DEFS	= -I. -I$(INC_DIR) -D$(SYSTYPE)
CFLAGS	= $(DEBUG) $(OPT) $(DEFS)
INCL	=
LIB	= libxsasl.a
TESTPROG= 

LIBS	= ../../lib/lib$(LIB_PERFIX)global$(LIB_SUFFIX) \
	../../lib/lib$(LIB_PERFIX)util$(LIB_SUFFIX)
LIB_DIR	= ../../lib
INC_DIR	= ../../include
MAKES	=

.c.o:;	$(CC) $(CFLAGS) -c $*.c

all: $(LIB)

$(OBJS): ../../conf/makedefs.out

Makefile: Makefile.in
	cat ../../conf/makedefs.out $? >$@

test:	$(TESTPROG)

tests:

root_tests:

$(LIB):	$(OBJS)
	$(_AR) $(ARFL) $(LIB) $?
	$(_RANLIB) $(LIB)

$(LIB_DIR)/$(LIB): $(LIB)
	cp $(LIB) $(LIB_DIR)
	$(_RANLIB) $(LIB_DIR)/$(LIB)

update: $(LIB_DIR)/$(LIB) $(HDRS)
	-for i in $(HDRS); \
	do \
	  cmp -s $$i $(INC_DIR)/$$i 2>/dev/null || cp $$i $(INC_DIR); \
	done
	cd $(INC_DIR); chmod 644 $(HDRS)

clean:
	rm -f *.o $(LIB) *core $(TESTPROG) junk

tidy:	clean

foo: $(LIB) $(LIBS)
	mv $@.o junk
	$(CC) $(CFLAGS) -DTEST -o $@ $@.c $(LIB) $(LIBS) $(SYSLIBS)
	mv junk $@.o

depend: $(MAKES)
	(sed '1,/^# do not edit/!d' Makefile.in; \
	set -e; for i in [a-z][a-z0-9]*.c; do \
	    $(CC) -E $(DEFS) $(INCL) $$i | grep -v '[<>]' | sed -n -e '/^# *1 *"\([^"]*\)".*/{' \
	    -e 's//'`echo $$i|sed 's/c$$/o/'`': \1/' \
	    -e 's/o: \.\//o: /' -e p -e '}' ; \
	done | LANG=C sort -u) | grep -v '[.][o][:][ ][/]' >$$$$ && mv $$$$ Makefile.in
	@$(EXPORT) make -f Makefile.in Makefile 1>&2

# do not edit below this line - it is generated by 'make depend'
xsasl_client.o: ../../include/argv.h
xsasl_client.o: ../../include/check_arg.h
xsasl_client.o: ../../include/msg.h
xsasl_client.o: ../../include/mymalloc.h
xsasl_client.o: ../../include/sys_defs.h
xsasl_client.o: ../../include/vbuf.h
xsasl_client.o: ../../include/vstream.h
xsasl_client.o: ../../include/vstring.h
xsasl_client.o: xsasl.h
xsasl_client.o: xsasl_client.c
xsasl_client.o: xsasl_cyrus.h
xsasl_cyrus_client.o: ../../include/argv.h
xsasl_cyrus_client.o: ../../include/check_arg.h
xsasl_cyrus_client.o: ../../include/mail_params.h
xsasl_cyrus_client.o: ../../include/msg.h
xsasl_cyrus_client.o: ../../include/mymalloc.h
xsasl_cyrus_client.o: ../../include/stringops.h
xsasl_cyrus_client.o: ../../include/sys_defs.h
xsasl_cyrus_client.o: ../../include/vbuf.h
xsasl_cyrus_client.o: ../../include/vstream.h
xsasl_cyrus_client.o: ../../include/vstring.h
xsasl_cyrus_client.o: xsasl.h
xsasl_cyrus_client.o: xsasl_cyrus.h
xsasl_cyrus_client.o: xsasl_cyrus_client.c
xsasl_cyrus_client.o: xsasl_cyrus_common.h
xsasl_cyrus_log.o: ../../include/msg.h
xsasl_cyrus_log.o: ../../include/sys_defs.h
xsasl_cyrus_log.o: xsasl_cyrus_common.h
xsasl_cyrus_log.o: xsasl_cyrus_log.c
xsasl_cyrus_security.o: ../../include/check_arg.h
xsasl_cyrus_security.o: ../../include/name_mask.h
xsasl_cyrus_security.o: ../../include/sys_defs.h
xsasl_cyrus_security.o: ../../include/vbuf.h
xsasl_cyrus_security.o: ../../include/vstring.h
xsasl_cyrus_security.o: xsasl_cyrus_common.h
xsasl_cyrus_security.o: xsasl_cyrus_security.c
xsasl_cyrus_server.o: ../../include/argv.h
xsasl_cyrus_server.o: ../../include/check_arg.h
xsasl_cyrus_server.o: ../../include/mail_params.h
xsasl_cyrus_server.o: ../../include/msg.h
xsasl_cyrus_server.o: ../../include/mymalloc.h
xsasl_cyrus_server.o: ../../include/name_mask.h
xsasl_cyrus_server.o: ../../include/stringops.h
xsasl_cyrus_server.o: ../../include/sys_defs.h
xsasl_cyrus_server.o: ../../include/vbuf.h
xsasl_cyrus_server.o: ../../include/vstream.h
xsasl_cyrus_server.o: ../../include/vstring.h
xsasl_cyrus_server.o: xsasl.h
xsasl_cyrus_server.o: xsasl_cyrus.h
xsasl_cyrus_server.o: xsasl_cyrus_common.h
xsasl_cyrus_server.o: xsasl_cyrus_server.c
xsasl_dovecot_server.o: ../../include/argv.h
xsasl_dovecot_server.o: ../../include/check_arg.h
xsasl_dovecot_server.o: ../../include/connect.h
xsasl_dovecot_server.o: ../../include/iostuff.h
xsasl_dovecot_server.o: ../../include/mail_params.h
xsasl_dovecot_server.o: ../../include/msg.h
xsasl_dovecot_server.o: ../../include/myaddrinfo.h
xsasl_dovecot_server.o: ../../include/mymalloc.h
xsasl_dovecot_server.o: ../../include/name_mask.h
xsasl_dovecot_server.o: ../../include/split_at.h
xsasl_dovecot_server.o: ../../include/stringops.h
xsasl_dovecot_server.o: ../../include/sys_defs.h
xsasl_dovecot_server.o: ../../include/vbuf.h
xsasl_dovecot_server.o: ../../include/vstream.h
xsasl_dovecot_server.o: ../../include/vstring.h
xsasl_dovecot_server.o: ../../include/vstring_vstream.h
xsasl_dovecot_server.o: xsasl.h
xsasl_dovecot_server.o: xsasl_dovecot.h
xsasl_dovecot_server.o: xsasl_dovecot_server.c
xsasl_server.o: ../../include/argv.h
xsasl_server.o: ../../include/check_arg.h
xsasl_server.o: ../../include/msg.h
xsasl_server.o: ../../include/mymalloc.h
xsasl_server.o: ../../include/sys_defs.h
xsasl_server.o: ../../include/vbuf.h
xsasl_server.o: ../../include/vstream.h
xsasl_server.o: ../../include/vstring.h
xsasl_server.o: xsasl.h
xsasl_server.o: xsasl_cyrus.h
xsasl_server.o: xsasl_dovecot.h
xsasl_server.o: xsasl_server.c
