#
#  Makefile for libPantomime
#  Copyright (C) 2001, 2002
#
#  Author: Ludovic Marcotte <ludovic@Sophos.ca>
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#   
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#   
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */

include $(GNUSTEP_MAKEFILES)/common.make

# The application to be compiled
LIBRARY_NAME = libPantomime

# C sources files to be compiled
libPantomime_C_FILES = atonum.c date_util.c getword.c len_next.c parsarpdat.c parsarpmbox.c rfc822tlen.c strfcpy.c strincmp.c striparens.c

# The Objective-C source files to be compiled
libPantomime_OBJC_FILES = \
  MimeUtility.m \
  Message.m \
  Part.m \
  Parser.m \
  Flags.m \
  InternetAddress.m \
  MimeBodyPart.m \
  NSStringExtensions.m \
  NSDataExtensions.m \
  MimeMultipart.m \
  \
  LocalMessage.m \
  LocalStore.m \
  LocalFolder.m \
  LocalFolderCacheManager.m \
  \
  POP3Store.m \
  POP3Folder.m \
  POP3Message.m \
  POP3CacheObject.m \
  POP3CacheManager.m \
  \
  IMAPStore.m \
  IMAPFolder.m \
  IMAPMessage.m \
  IMAPCacheManager.m \
  IMAPCacheObject.m \
  \
  Folder.m \
  Sendmail.m \
  SMTP.m \
  TCPConnection.m \
  \
  Charset.m \
  GSMD5.m \
  ISO8859_1.m ISO8859_2.m ISO8859_3.m ISO8859_4.m ISO8859_5.m ISO8859_6.m ISO8859_7.m ISO8859_8.m ISO8859_9.m ISO8859_10.m ISO8859_11.m ISO8859_13.m ISO8859_14.m ISO8859_15.m \
  UTF8.m KOI8_R.m KOI8_U.m WINDOWS_1251.m WINDOWS_1252.m \
  URLName.m

# The Objective-C headers needed when compiling
libPantomime_HEADERS = Parser.h Part.h Message.h MimeMultipart.h MimeBodyPart.h Constants.h MimeUtility.h InternetAddress.h Flags.h NSStringExtensions.h NSDataExtensions.h elm_defs.h elm_lib.h parseaddrs.h Folder.h LocalMessage.h Store.h LocalStore.h LocalFolder.h LocalFolderCacheManager.h Transport.h Service.h Sendmail.h SMTP.h POP3Store.h POP3Folder.h POP3Message.h IMAPStore.h IMAPFolder.h IMAPMessage.h Charset.h ISO8859_1.h ISO8859_2.h ISO8859_3.h ISO8859_4.h ISO8859_5.h ISO8859_6.h ISO8859_7.h ISO8859_8.h ISO8859_9.h ISO8859_10.h ISO8859_11.h ISO8859_13.h ISO8859_14.h ISO8859_15.h POP3CacheObject.h POP3CacheManager.h IMAPCacheManager.h IMAPCacheObject.h TCPConnection.h GSMD5.h UTF8.h KOI8_R.h KOI8_U.h WINDOWS_1251.h WINDOWS_1252.h URLName.h

# The Headers that are to be installed with libPantomime
libPantomime_HEADER_FILES = Parser.h Part.h Message.h MimeMultipart.h MimeBodyPart.h Constants.h MimeUtility.h InternetAddress.h Flags.h NSStringExtensions.h NSDataExtensions.h elm_defs.h elm_lib.h parseaddrs.h Folder.h LocalMessage.h Store.h LocalStore.h LocalFolder.h LocalFolderCacheManager.h Transport.h Service.h Sendmail.h SMTP.h POP3Store.h POP3Folder.h POP3Message.h IMAPStore.h IMAPFolder.h IMAPMessage.h Charset.h ISO8859_1.h ISO8859_2.h ISO8859_3.h ISO8859_4.h ISO8859_5.h ISO8859_6.h ISO8859_7.h ISO8859_8.h ISO8859_9.h ISO8859_10.h ISO8859_11.h ISO8859_13.h ISO8859_14.h ISO8859_15.h POP3CacheObject.h POP3CacheManager.h IMAPCacheManager.h IMAPCacheObject.h TCPConnection.h GSMD5.h UTF8.h KOI8_R.h KOI8_U.h WINDOWS_1251.h WINDOWS_1252.h URLName.h

libPantomime_HEADER_FILES_DIR = ../Headers/Pantomime

libPantomime_HEADER_FILES_INSTALL_DIR = /Pantomime

ADDITIONAL_INCLUDE_DIRS = -I../Headers

ADDITIONAL_OBJCFLAGS = -Wall

include $(GNUSTEP_MAKEFILES)/library.make


