XCOMM
XCOMM wmmail - WindowMaker Mail
XCOMM
XCOMM Copyright (c) 1996, 1997, 1998  Per Liden
XCOMM Copyright (c) 1997, 1998  Bryan Chan
XCOMM
XCOMM This program is free software; you can redistribute it and/or modify
XCOMM it under the terms of the GNU General Public License as published by
XCOMM the Free Software Foundation; either version 2 of the License, or
XCOMM (at your option) any later version.
XCOMM
XCOMM This program is distributed in the hope that it will be useful,
XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XCOMM GNU General Public License for more details.
XCOMM
XCOMM You should have received a copy of the GNU General Public License
XCOMM along with this program; if not, write to the Free Software
XCOMM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XCOMM
XCOMM   Imakefile: build script
XCOMM


XCOMM
XCOMM Uncomment the following line to enable debugging  
XCOMM
XCOMM      CDEBUGFLAGS = -g


XCOMM
XCOMM Please specify the location of the XPM library:
XCOMM
                XPMLIB = /usr/X11R6/lib


XCOMM
XCOMM If GNU flex and GNU bison are not installed on your system, or if you
XCOMM wish to add other flags to these commands, change the following:
XCOMM
                   LEX = flex
              LEXFLAGS =
                LEXLIB = -lfl
                  YACC = bison -y
             YACCFLAGS = -d
               YACCLIB = 


XCOMM
XCOMM What mailbox format is used on your system? (THESE OPTIONS CURRENTLY
XCOMM HAVE NO EFFECT; EVERYTHING IS COMPILED IN FOR NOW.)
XCOMM  
XCOMM   -DUSE_MBOX     Use UNIX-style mbox format. sendmail uses this format.
XCOMM                  Some mail readers (like PINE) also use this format for
XCOMM                  its folders, so support for this format should probably
XCOMM                  be compiled in always.
XCOMM
XCOMM   -DUSE_MH       Use MH-style mail folders. 
XCOMM
XCOMM   -DUSE_MAILDIR  Use the MailDir system, usually used with qmail. 
XCOMM
XCOMM   -DUSE_POP3     Use POP3 mailboxes. This is useful if you wish to 
XCOMM                  monitor the status of a mailbox on a POP3 server,
XCOMM                  without having to download the mails.
XCOMM
XCOMM   -DUSE_IMAP     Use IMAP mailboxes. This is useful if you wish to
XCOMM                  monitor the status of a mailbox on an IMAP server,
XCOMM                  without having to download the mails.
XCOMM
XCOMM Delete unnecessary options from the following line:
XCOMM

     SUPPORTED_FORMATS = -DUSE_MBOX -DUSE_MH -DUSE_MAILDIR -DUSE_POP3 -DUSE_IMAP


XCOMM
XCOMM You shouldn't need to change anything below this line.
XCOMM
               CFLAGS += $(SUPPORTED_FORMATS)
      LOCAL_LIBRARIES += -L$(XPMLIB) -lXpm -lXt $(XLIB) $(LEXLIB) $(YACCLIB)
              DEPLIBS  = $(DEPXLIB)
       
                 SRCS  = global.c mail.c mh.c pop3.c std_icons.c util.c \
                         wmmail.c wmmailrc_y.y wmmailrc_l.l
       
                 OBJS  = global.o mail.o mh.o pop3.o std_icons.o util.o \
                         wmmail.o wmmailrc_y.o wmmailrc_l.o

XCOMM lex rule
.l.o:
.l.c:
	$(LEX) $(LEXFLAGS) $<
	$(CP) lex.yy.c $@

XCOMM yacc rule
.y.o:
.y.c:
	$(YACC) $(YACCFLAGS) $<
	$(MV) y.tab.c $@
	$(MV) y.tab.h $*.h

ComplexProgramTarget(wmmail)

clean::
	$(RM) wmmailrc_y.h lex.yy.c

distclean:: clean
	$(RM) Makefile

