1SubDir HAIKU_TOP src bin network ftpd ; 2 3SetSubDirSupportedPlatforms $(HAIKU_BONE_COMPATIBLE_PLATFORMS) ; 4 5if ! $(TARGET_PLATFORM_HAIKU_COMPATIBLE) { 6 UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ; 7 # We need the public network headers also when not compiling for Haiku. 8 # Unfortunately we get more than we want, namely all POSIX headers. 9} 10 11UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; 12UseHeaders $(SUBDIR) : true ; 13SubDirCcFlags [ FDefines _BSD_SOURCE=1 ] ; 14 15BinCommand ftpd : 16 ftpd.c 17 ftpcmd.y 18 logwtmp.c 19 popen.c 20 21 # from libmd 22 md5c.c 23 md5hl.c 24 : libutil.a libbsd.so $(TARGET_NETWORK_LIBS) 25; 26