#
# Makefile for Jitterbug
# 
# DO NOT EDIT this file (unless you know what you are doing and want debugging)
# To turn debugging on add -DDEBUG_COMMENTS to CFLAGS. See docs/jitterbug.doc
#
# Initial autoconf version Dan Shearer 31 Oct 97

#INSTALL_BIN=@prefix@/bin
#INSTALL_MAN=@prefix@/man
#INSTALLCMD=@INSTALL@

LIBS=@LIBS@
CFLAGS=@CCOPTFLAGS@
CC=@CC@ 
AWK=@AWK@

SRC=@srcdir@
SHELL=/bin/sh

COMMON = util.o smtp.o notify.o lock.o list.o cgi.o loadparm.o
OBJS = jitterbug.o search.o $(COMMON)
OBJS2 = new_message.o $(COMMON)

#I think this is a default make rule, but whatever...
.SUFFIXES: .c .o

all: jitterbug new_message

jitterbug: $(OBJS)
	$(CC) $(CFLAGS) -o jitterbug $(OBJS) $(LIBS)

new_message: $(OBJS2)
	$(CC) $(CFLAGS) -o new_message $(OBJS2) $(LIBS)

proto:
	${AWK} -f mkproto.awk *.c > proto.h

clean:
	/bin/rm -f $(OBJS) $(OBJS2) jitterbug new_message config.cache config.log config.status 

tags:
	etags *.[ch]
