SubDir HAIKU_TOP src bin network ftpd ; SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ; if ! $(TARGET_PLATFORM_HAIKU_COMPATIBLE) { UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; # We need the public network headers also when not compiling for Haiku. # Unfortunately we get more than we want, namely all POSIX headers. } UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; UseHeaders $(SUBDIR) : true ; SubDirCcFlags [ FDefines _BSD_SOURCE=1 ] ; BinCommand ftpd : ftpd.c ftpcmd.y logwtmp.c popen.c # from libmd md5c.c md5hl.c : libutil.a libbsd.so $(TARGET_NETWORK_LIBS) ;