# compiling with g++-3 worked for me with the commented ## lines - tpo

# path to c-client headers
C = /afs/net/project/mailsync/include/c-client

##C = /usr/include/c-client -I/usr/include/g++-v3/

# path to c-client library
# linking dynamically
CCLIENTLIB = /usr/lib/libc-client.so
# linkging statically
#CCLIENTLIB = ../imap-2001a/c-client/c-client.a
CCLIENTLIB = /afs/net/project/mailsync/lib/c-client.a

# compiler
CC = g++
##CC = g++-3.0

# flags for your compiler
CFLAGS = -g  -O2 -Wall -I$(C)

# required libraries
LDFLAGS = -L/usr/athena/lib -lm -L/usr/athena/lib -lgssapi_krb5 -lkrb4 -lkrb5 -ldes425 -lk5crypto -lcom_err -lcrypt -lsocket -lresolv -lnsl -R/usr/athena/lib
# if your system requires pam to access crypt() you have to link pam in
#LDFLAGS = -lm -lssl -lpam

default: mailsync

mailsync: mailsync.o $(CCLIENTLIB)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

clean:
	rm -f mailsync mailsync.o core
