1SubDir HAIKU_TOP src kits mail ; 2 3UsePrivateHeaders mail shared ; 4UsePublicHeaders [ FDirName add-ons mail_daemon ] ; 5 6if $(CHECK_MALLOC) { 7 SubDirC++Flags -D_NO_INLINE_ASM -fcheck-memory-usage ; 8} 9 10SubDirC++Flags -D_BUILDING_mail=1 ; 11 12UsePrivateHeaders textencoding ; 13 14 15local sources = 16 b_mail_message.cpp 17 c_mail_api.cpp 18 crypt.cpp 19 des.c 20 FileConfigView.cpp 21 HaikuMailFormatFilter.cpp 22 mail_encoding.cpp 23 mail_util.cpp 24 MailAttachment.cpp 25 MailComponent.cpp 26 MailContainer.cpp 27 MailDaemon.cpp 28 MailMessage.cpp 29 MailProtocol.cpp 30 MailSettings.cpp 31 NodeMessage.cpp 32 numailkit.cpp 33 ProtocolConfigView.cpp 34 ServerConnection.cpp 35; 36 37 38# use OpenSSL, if enabled 39if $(HAIKU_OPENSSL_ENABLED) { 40 SubDirC++Flags -DUSE_SSL ; 41 SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ; 42 Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ; 43 # Dependency needed to trigger downloading/unzipping the package before 44 # compiling the files. 45 SetupFeatureObjectsDir ssl ; 46} else { 47 SetupFeatureObjectsDir no-ssl ; 48} 49 50AddResources libmail.so : libmail.rdef ; 51 52SharedLibrary libmail.so : 53 $(sources) 54 : 55 be libbnetapi.so libtextencoding.so tracker 56 $(TARGET_LIBSTDC++) 57 $(TARGET_NETWORK_LIBS) 58 $(TARGET_SELECT_UNAME_ETC_LIB) 59 $(HAIKU_OPENSSL_LIBS) 60 $(HAIKU_LOCALE_LIBS) 61; 62 63 64DoCatalogs libmail.so : 65 x-vnd.Haiku-libmail 66 : 67 FileConfigView.cpp 68 ProtocolConfigView.cpp 69; 70