1SubDir HAIKU_TOP src system libroot posix string ; 2 3UsePrivateHeaders 4 [ FDirName libroot ] 5 [ FDirName libroot locale ] 6 ; 7 8 9# Our versions of strdup and strndup check for NULL parameters (for BeOS 10# compatibility), but GCC optimizes this away as its builtins don't handle 11# it. 12C++FLAGS += -fno-builtin-strdup -fno-builtin-strndup ; 13 14local architectureObject ; 15for architectureObject in [ MultiArchSubDirSetup ] { 16 on $(architectureObject) { 17 local architecture = $(TARGET_PACKAGING_ARCH) ; 18 19 MergeObject <$(architecture)>posix_string.o : 20 bcmp.c 21 bcopy.c 22 bzero.c 23 memccpy.c 24 memchr.c 25 memcmp.c 26 memmove.c 27 stpcpy.c 28 strcasecmp.c 29 strcasestr.c 30 strcat.c 31 strchr.c 32 strchrnul.c 33 strcmp.c 34 strcoll.cpp 35 strcpy.c 36 strcspn.c 37 strdup.cpp 38 strerror.c 39 strlcat.c 40 strlcpy.c 41 strlen.cpp 42 strlwr.c 43 strncat.c 44 strncmp.c 45 strncpy.cpp 46 strndup.cpp 47 strnlen.cpp 48 strpbrk.c 49 strrchr.c 50 strspn.c 51 strstr.c 52 strtok.c 53 strupr.c 54 strxfrm.cpp 55 ; 56 } 57} 58 59local arch ; 60for arch in $(TARGET_ARCHS) { 61 HaikuSubInclude arch $(arch) ; 62} 63