Android.mk revision e4fa46e75cd0d433b5c6c064720ed7e195cba7c8
11dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_PATH:= $(call my-dir) 21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 31dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(LOCAL_PATH)/arch-$(TARGET_ARCH)/syscalls.mk 4ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 5ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the common source files for all the libc instances 6ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================= 71dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files := \ 81dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(syscall_src) \ 91dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/abort.c \ 101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/alarm.c \ 111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/brk.c \ 121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/creat.c \ 131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/daemon.c \ 141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/exec.c \ 151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/fcntl.c \ 161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/fnmatch.c \ 171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ftime.c \ 181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ftok.c \ 191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getcwd.c \ 201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getdtablesize.c \ 211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/gethostname.c \ 221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getopt_long.c \ 231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpgrp.c \ 241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpriority.c \ 251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpt.c \ 261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/initgroups.c \ 271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/isatty.c \ 281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/issetugid.c \ 291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/lseek64.c \ 301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/mmap.c \ 311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/nice.c \ 321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/open.c \ 331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/openat.c \ 341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/opendir.c \ 351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pathconf.c \ 361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/perror.c \ 371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/popen.c \ 381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pread.c \ 391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pselect.c \ 401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ptsname.c \ 411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ptsname_r.c \ 421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pwrite.c \ 431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/raise.c \ 441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/reboot.c \ 451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/recv.c \ 461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sbrk.c \ 471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/send.c \ 481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/setegid.c \ 491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/seteuid.c \ 501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/setpgrp.c \ 511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigblock.c \ 521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/siginterrupt.c \ 531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/siglist.c \ 541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/signal.c \ 5592b10af793da235659198cf38ff2e0237c181058Thorsten Glaser unistd/signame.c \ 561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigsetmask.c \ 571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigsuspend.c \ 581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigwait.c \ 591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sleep.c \ 601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/statfs.c \ 611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/strsignal.c \ 621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sysconf.c \ 631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/syslog.c \ 641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/system.c \ 651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/tcgetpgrp.c \ 661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/tcsetpgrp.c \ 671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/time.c \ 681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/umount.c \ 691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/unlockpt.c \ 701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/usleep.c \ 711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/wait.c \ 721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/asprintf.c \ 731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/clrerr.c \ 741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fclose.c \ 751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fdopen.c \ 761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/feof.c \ 771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ferror.c \ 781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fflush.c \ 791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetc.c \ 801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetln.c \ 811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetpos.c \ 821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgets.c \ 831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fileno.c \ 841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/findfp.c \ 851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/flags.c \ 861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/flockfile.c \ 871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fopen.c \ 881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fprintf.c \ 891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fpurge.c \ 901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fputc.c \ 911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fputs.c \ 921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fread.c \ 931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/freopen.c \ 941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fscanf.c \ 951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fseek.c \ 961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fsetpos.c \ 971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ftell.c \ 981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/funopen.c \ 991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fvwrite.c \ 1001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fwalk.c \ 1011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fwrite.c \ 1021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/getc.c \ 1031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/getchar.c \ 1041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/gets.c \ 1051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/makebuf.c \ 1061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/mktemp.c \ 1071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/printf.c \ 1081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putc.c \ 1091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putchar.c \ 1101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/puts.c \ 1111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putw.c \ 1121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/refill.c \ 1131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/remove.c \ 1141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/rewind.c \ 1151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/rget.c \ 1161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/scanf.c \ 1171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setbuf.c \ 1181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setbuffer.c \ 1191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setvbuf.c \ 1201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/snprintf.c\ 1211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/sprintf.c \ 1221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/sscanf.c \ 1231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/stdio.c \ 1241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tempnam.c \ 1251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tmpfile.c \ 1261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tmpnam.c \ 1271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ungetc.c \ 1281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vasprintf.c \ 1291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vfprintf.c \ 1301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vfscanf.c \ 1311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vprintf.c \ 1321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsnprintf.c \ 1331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsprintf.c \ 1341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vscanf.c \ 1351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsscanf.c \ 1361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/wbuf.c \ 1371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/wsetup.c \ 1381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/_rand48.c \ 1391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/assert.c \ 1401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atexit.c \ 1411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atoi.c \ 1421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atol.c \ 1431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atoll.c \ 1441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/bsearch.c \ 1451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/ctype_.c \ 1461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/div.c \ 1471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/exit.c \ 1481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/getenv.c \ 1491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/jrand48.c \ 1501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/ldiv.c \ 1511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/lldiv.c \ 1521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/locale.c \ 1531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/lrand48.c \ 1541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/mrand48.c \ 1551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/nrand48.c \ 1561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/putenv.c \ 1571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/qsort.c \ 1581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/seed48.c \ 1591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/setenv.c \ 1601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/setjmperr.c \ 1611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/srand48.c \ 1621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strntoimax.c \ 1631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strntoumax.c \ 1641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtod.c \ 1651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoimax.c \ 1661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtol.c \ 1671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoll.c \ 1681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoul.c \ 1691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoull.c \ 1701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoumax.c \ 1711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/tolower_.c \ 1721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/toupper_.c \ 1731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/wchar.c \ 1741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/index.c \ 1751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memccpy.c \ 1761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memchr.c \ 1771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memmem.c \ 1781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memrchr.c \ 1791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memswap.c \ 1801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcasecmp.c \ 1811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcasestr.c \ 1821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcat.c \ 1831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strchr.c \ 1841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcoll.c \ 1851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcpy.c \ 1861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcspn.c \ 1871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strdup.c \ 1881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strerror.c \ 1891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strerror_r.c \ 1901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strlcat.c \ 1911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strlcpy.c \ 1921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strncat.c \ 1931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strncpy.c \ 1941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strndup.c \ 1951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strnlen.c \ 1961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strpbrk.c \ 1971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strrchr.c \ 1981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strsep.c \ 1991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strspn.c \ 2001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strstr.c \ 2011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strtok.c \ 2021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strtotimeval.c \ 2031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strxfrm.c \ 2041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/bindresvport.c \ 2051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_addr.c \ 2061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_aton.c \ 2071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_ntoa.c \ 2081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_ntop.c \ 2091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_pton.c \ 2101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/asctime.c \ 2111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/difftime.c \ 2121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/localtime.c \ 2131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/strftime.c \ 2141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/strptime.c \ 2151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/__errno.c \ 2161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/__set_errno.c \ 2171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/_rand48.c \ 2181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/arc4random.c \ 2191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/basename.c \ 2201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/basename_r.c \ 2211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dirname.c \ 2221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dirname_r.c \ 2231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/drand48.c \ 2241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/erand48.c \ 2251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/fork.c \ 2261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/if_nametoindex.c \ 2271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/if_indextoname.c \ 2281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ioctl.c \ 2291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ldexp.c \ 2301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_common.c \ 2311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/logd_write.c \ 2321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/md5.c \ 2331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pututline.c \ 2341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/realpath.c \ 2351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/semaphore.c \ 2361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/sha1.c \ 2371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ssp.c \ 2381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/stubs.c \ 2391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/system_properties.c \ 2401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/time64.c \ 2411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/thread_atexit.c \ 2421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/utime.c \ 2431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/utmp.c \ 2441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/gethnamaddr.c \ 2451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/isc/ev_timers.c \ 2461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/isc/ev_streams.c \ 2471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/inet/nsap_addr.c \ 2481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__dn_comp.c \ 2491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__res_close.c \ 2501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__res_send.c \ 2511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/herror.c \ 2521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_comp.c \ 2531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_data.c \ 2541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_debug.c \ 2551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_init.c \ 2561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_mkquery.c \ 2571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_query.c \ 2581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_send.c \ 25910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI netbsd/resolv/res_state.c \ 2601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_cache.c \ 2611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/nsdispatch.c \ 2621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getaddrinfo.c \ 2631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getnameinfo.c \ 2641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservbyname.c \ 2651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservent.c \ 2661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/base64.c \ 2671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservbyport.c \ 2681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_name.c \ 2691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_parse.c \ 2701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_ttl.c \ 2711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_netint.c \ 2721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_print.c \ 2731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_samedomain.c 2741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 275ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Architecture specific source files go here 276ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================= 2771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),arm) 2781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 2791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/eabi.c \ 2801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/__get_pc.S \ 2811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/__get_sp.S \ 2821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/_exit_with_stack_teardown.S \ 2831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/_setjmp.S \ 2841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/atomics_arm.S \ 2851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/clone.S \ 2861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/ffs.S \ 2871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/kill.S \ 2882a7ad97539313c82e13d36c9c75cefb2982a87d8David 'Digit' Turner arch-arm/bionic/libgcc_compat.c \ 2891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/tkill.S \ 2901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcmp.S \ 2911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcmp16.S \ 2921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcpy.S \ 2931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memset.S \ 2941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/setjmp.S \ 2951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/sigsetjmp.S \ 2961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/strlen.c.arm \ 2971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/syscall.S \ 298e4fa46e75cd0d433b5c6c064720ed7e195cba7c8Matt Fischer arch-arm/bionic/sigaction.c \ 299e4fa46e75cd0d433b5c6c064720ed7e195cba7c8Matt Fischer arch-arm/bionic/__sig_restorer.S \ 30010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/memmove.c.arm \ 3018ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/bcopy.c \ 3028ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strcmp.c \ 3038ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strncmp.c \ 3041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/socketcalls.c 3051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 3061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# These files need to be arm so that gdbserver 3071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# can set breakpoints in them without messing 3081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# up any thumb code. 3091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 3101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread.c.arm \ 3111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread-timers.c.arm \ 3121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ptrace.c.arm 313ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 314ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# these are used by the static and dynamic versions of the libc 315ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# respectively 316ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_static_src_files := \ 317ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-arm/bionic/exidx_static.c 318ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 319ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_dynamic_src_files := \ 320ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-arm/bionic/exidx_dynamic.c 3211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectelse # !arm 3221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 3231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),x86) 3241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 3251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__get_sp.S \ 3261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__get_tls.c \ 3271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__set_tls.c \ 3281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/atomics_x86.S \ 3291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/clone.S \ 3301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/_exit_with_stack_teardown.S \ 3311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/setjmp.S \ 3321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/_setjmp.S \ 3331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/vfork.S \ 3343c543e1da9a2780a70b25299f39734bf0a18c4a0Bruce Beare arch-x86/bionic/syscall.S \ 3358ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/bcopy_wrapper.S \ 3368ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memcpy_wrapper.S \ 3378ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memmove_wrapper.S \ 3388ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/bzero_wrapper.S \ 3398ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memcmp_wrapper.S \ 3408ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memset_wrapper.S \ 3418ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/strcmp_wrapper.S \ 3428ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/strncmp_wrapper.S \ 3431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/string/strlen.S \ 3441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread.c \ 3451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread-timers.c \ 3461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ptrace.c 3471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 348ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# this is needed for static versions of libc 349ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_static_src_files := \ 350ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-x86/bionic/dl_iterate_phdr_static.c 351ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 352ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_dynamic_src_files := 35310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIelse # !x86 35410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI 35510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIifeq ($(TARGET_ARCH),sh) 35610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIlibc_common_src_files += \ 35710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_pc.S \ 35810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_sp.S \ 35910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/_exit_with_stack_teardown.S \ 36010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/_setjmp.S \ 36110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/atomics_sh.c \ 36210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/atomic_cmpxchg.S \ 36310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/clone.S \ 36410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/pipe.S \ 36510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memcpy.S \ 36610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memset.S \ 36710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/bzero.S \ 36810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/setjmp.S \ 36910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/sigsetjmp.S \ 37010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/syscall.S \ 37110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memmove.S \ 37210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__set_tls.c \ 37310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_tls.c \ 37410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/ffs.S \ 3758ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/bcopy.c \ 3768ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strcmp.c \ 3778ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strncmp.c \ 37810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/memcmp.c \ 37910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/strlen.c \ 38010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/eabi.c \ 38110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/pthread.c \ 38210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/pthread-timers.c \ 38310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/ptrace.c \ 38410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI unistd/socketcalls.c 38510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIendif # sh 38610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI 38710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIendif # !x86 3881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif # !arm 3891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 390ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags 391ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 3921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \ 3931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DWITH_ERRLIST \ 3941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DANDROID_CHANGES \ 3951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DUSE_LOCKS \ 3961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DREALLOC_ZERO_BYTES_FREES \ 3971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -D_LIBC=1 \ 3981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DSOFTFLOAT \ 3991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DFLOATING_POINT \ 4001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DNEED_PSELECT=1 \ 4011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DINET6 \ 4021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -I$(LOCAL_PATH)/private \ 403ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin -DUSE_DL_PREFIX 4041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 405d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true) 4061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -DDEBUG 4071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif 4081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),arm) 4101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -fstrict-aliasing 411ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin libc_crt_target_cflags := -mthumb-interwork 4124a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4134a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # Define HAVE_ARM_TLS_REGISTER macro to indicate to the C library 4144a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # that it should access the hardware TLS register directly in 4154a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # private/bionic_tls.h 4164a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4174a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # The value must match your kernel configuration 4184a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4194a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) 4204a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner libc_common_cflags += -DHAVE_ARM_TLS_REGISTER 4214a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner endif 422ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinelse # !arm 423ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin ifeq ($(TARGET_ARCH),x86) 424ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin libc_crt_target_cflags := -m32 4258ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare 4268ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare # Enable recent IA friendly memory routines (such as for Atom) 4278ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare # These will not work on the earlier x86 machines 4288ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare libc_common_cflags += -mtune=i686 -DUSE_SSSE3 -DUSE_SSE2 429ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin endif # x86 430ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinendif # !arm 4311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 432ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes 433ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_c_includes := \ 4351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/stdlib \ 4361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/string \ 4371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/stdio 4381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 440ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the libc run-time (crt) support object files that must be built, 441ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# which are needed to build all other objects (shared/static libs and 442ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# executables) 443ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================================== 4441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 445ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinifeq ($(TARGET_ARCH),x86) 446ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# we only need begin_so/end_so for x86, since it needs an appropriate .init 447ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# section in the shared library with a function to call all the entries in 448ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# .ctors section. ARM uses init_array, and does not need the function. 449ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_so.o 450ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_so.S 4511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 452ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 4531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 4541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 455ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtend_so.o 456ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend_so.S 457ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin @mkdir -p $(dir $@) 458ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 459ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinALL_GENERATED_SOURCES += $(GEN) 460ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinendif # TARGET_ARCH == x86 4611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 463ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_static.o 464ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_static.S 465ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin @mkdir -p $(dir $@) 466ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 467ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinALL_GENERATED_SOURCES += $(GEN) 4681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 469ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_dynamic.o 470ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_dynamic.S 4711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 472ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 4731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 4741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 475ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 476ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# We rename crtend.o to crtend_android.o to avoid a 477ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# name clash between gcc and bionic. 478ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtend_android.o 479ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend.S 4801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 481ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 4821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 4831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 485ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# To enable malloc leak check for statically linked programs, add 486ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# "WITH_MALLOC_CHECK_LIBC_A := true" to buildspec.mk 487ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinWITH_MALLOC_CHECK_LIBC_A := $(strip $(WITH_MALLOC_CHECK_LIBC_A)) 4881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 489ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 490ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a 491ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 492ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS) 4931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 494ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files) 495ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := $(libc_common_cflags) 496ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 4971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common 4981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 4991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 5011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 503ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 50449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a 50549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 50649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# 50749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not 50849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# include malloc. It's useful in situations when calling 50949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# the user wants to provide their own malloc implementation, 51049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# or wants to explicitly disallow the use of the use of malloc, 51149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# like the dynamic loader. 51249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 51349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS) 51449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 51549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \ 51649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin $(libc_arch_static_src_files) \ 51749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin bionic/libc_init_static.c 51849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 51949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 52049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_CFLAGS := $(libc_common_cflags) 52149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 52249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc 52349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 52449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES := 52549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 52649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY) 52749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 52849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 52949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 5301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a 5311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 5321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 5331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 535ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_arch_static_src_files) \ 5361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dlmalloc.c \ 5371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_static.c 5381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 539ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := $(libc_common_cflags) 540ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 5411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(WITH_MALLOC_CHECK_LIBC_A),true) 542ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK 5431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project LOCAL_SRC_FILES += bionic/malloc_leak.c.arm 5441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif 5451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 5471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 548ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc 5491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 5501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 5511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 5531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 555ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 5561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so 5571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 5581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 5591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_CFLAGS := $(libc_common_cflags) 5611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 5621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 564ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_arch_dynamic_src_files) \ 5651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dlmalloc.c \ 5661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/malloc_leak.c.arm \ 5671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_dynamic.c 5681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE:= libc 5701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, 5721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This 5731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared 5741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it 5751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries. That would 5761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# create an "cloaked" dependency on libgcc.a in libc though the libraries, which is not what 5771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted! 5781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl 5801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 5811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 5821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 5841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 586ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 5871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc_debug.so 5881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 5891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 5901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 591ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := \ 592ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_common_cflags) \ 593ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin -DMALLOC_LEAK_CHECK 5941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 5961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 598ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_arch_dynamic_src_files) \ 5991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dlmalloc.c \ 6001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/malloc_leak.c.arm \ 6011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_dynamic.c 6021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE:= libc_debug 6041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, 6061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This 6071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared 6081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it 6091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries. That would 6101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# create an "cloaked" dependency on libgcc.a in libc though the libraries, which is not what 6111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted! 6121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl 6141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 6151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 6161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't prelink 6171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_PRELINK_MODULE := false 6181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build 6191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE_TAGS := eng 6201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 6221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 6241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH)) 625