1SubDir HAIKU_TOP src add-ons mail_daemon inbound_protocols pop3 ; 2 3SetSubDirSupportedPlatformsBeOSCompatible ; 4 5if $(TARGET_PLATFORM) != haiku { 6 UsePublicHeaders mail ; 7} 8 9UsePublicHeaders [ FDirName add-ons mail_daemon ] ; 10UsePrivateHeaders mail ; 11 12SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ; 13 14local sources = 15 MessageIO.cpp 16 pop3.cpp 17 SimpleMailProtocol.cpp 18 md5c.c 19; 20 21# use OpenSSL, if enabled 22if $(HAIKU_OPENSSL_ENABLED) { 23 SubDirC++Flags -DUSE_SSL ; 24 SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ; 25 Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ; 26 # Dependency needed to trigger downloading/unzipping the package before 27 # compiling the files. 28 SetupFeatureObjectsDir ssl ; 29} else { 30 SetupFeatureObjectsDir no-ssl ; 31} 32 33Addon POP3 34 : $(sources) 35 : be libmail.so $(TARGET_NETWORK_LIBS) $(HAIKU_OPENSSL_LIBS) 36; 37 38Package haiku-maildaemon-cvs : 39 POP3 : 40 boot home config add-ons mail_daemon inbound_protocols 41; 42