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 c_mail_api.cpp 17 crypt.cpp 18 des.c 19 FileConfigView.cpp 20 HaikuMailFormatFilter.cpp 21 mail_encoding.c 22 mail_util.cpp 23 MailAttachment.cpp 24 MailComponent.cpp 25 MailContainer.cpp 26 MailDaemon.cpp 27 MailMessage.cpp 28 MailProtocol.cpp 29 MailSettings.cpp 30 NodeMessage.cpp 31 numailkit.cpp 32 ProtocolConfigView.cpp 33 ServerConnection.cpp 34 StringList.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 56 libtextencoding.so 57 tracker 58 $(TARGET_LIBSTDC++) 59 $(TARGET_NETWORK_LIBS) 60 $(TARGET_SELECT_UNAME_ETC_LIB) 61 $(HAIKU_OPENSSL_LIBS) 62 $(HAIKU_LOCALE_LIBS) 63; 64 65 66DoCatalogs libmail.so : 67 x-vnd.Haiku-libmail 68 : 69 FileConfigView.cpp 70 ProtocolConfigView.cpp 71; 72