SubDir HAIKU_TOP src add-ons mail_daemon outbound_protocols smtp ; SetSubDirSupportedPlatformsBeOSCompatible ; if $(TARGET_PLATFORM) != haiku { UsePublicHeaders mail ; } UsePublicHeaders [ FDirName add-ons mail_daemon ] ; UsePrivateHeaders mail ; SubDirHdrs [ FDirName $(HAIKU_TOP) headers os add-ons mail_daemon ] ; local sources = smtp.cpp md5c.c ; # use OpenSSL, if enabled if $(HAIKU_OPENSSL_ENABLED) { SubDirC++Flags -DUSE_SSL ; SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ; Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ; # Dependency needed to trigger downloading/unzipping the package before # compiling the files. SetupFeatureObjectsDir ssl ; } else { SetupFeatureObjectsDir no-ssl ; } Addon SMTP : $(sources) : be libmail.so $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++) $(HAIKU_OPENSSL_LIBS) ; Package haiku-maildaemon-cvs : SMTP : boot home config add-ons mail_daemon outbound_protocols ;