Android.mk revision 94336d8ecf795cfdde874a1e15977d68cfc7afc1
1e210488e0d4082b9a0c55195c22191f29ed56bf8Serban ConstantinescuLOCAL_PATH := $(call my-dir)
21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
3d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris# Make everything depend on any changes to included makefiles.
4f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies := $(LOCAL_PATH)/Android.mk
5f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
6f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_ARCH
7f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
8f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
9f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \
10f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
11f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
12f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
13f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
14f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Load config for TARGET_2ND_ARCH
15f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
16f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
17f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
18f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_common_additional_dependencies += \
19f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
20f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
21f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
22f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crt obj files
23f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ========================================================
24f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# crtbrand.c needs <stdint.h> and a #define for the platform SDK version.
25f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_crt_target_cflags := \
26f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -I$(LOCAL_PATH)/include \
27f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
28f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
29f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
30f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk
31f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
32f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
33f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanginclude $(LOCAL_PATH)/crt.mk
34f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangmy_2nd_arch_prefix :=
35f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
36d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher Ferris
37ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the common source files for all the libc instances
38ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# =========================================================
391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files := \
4076c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/arc4random.c \
4176c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/bindresvport.c \
4276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/daemon.c \
4376c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/err.c \
4476c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ether_aton.c \
4576c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ether_ntoa.c \
4676c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/fdprintf.c \
4776c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ftime.c \
4876c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/fts.c \
4976c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/getdtablesize.c \
5076c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/gethostname.c \
5176c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/getpriority.c \
5276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/getpt.c \
5376c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/if_indextoname.c \
5476c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/if_nametoindex.c \
5576c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/initgroups.c \
5676c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ioctl.c \
5776c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/isatty.c \
5876c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/issetugid.c \
5976c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/md5.c \
6076c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/memmem.c \
6176c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/pathconf.c \
6276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ptsname.c \
6376c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/ptsname_r.c \
6476c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/pututline.c \
6576c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sched_cpualloc.c \
6676c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sched_cpucount.c \
6776c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/semaphore.c \
6876c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sigblock.c \
6976c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/siginterrupt.c \
7076c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/sigsetmask.c \
7176c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/system_properties_compat.c \
7276c8b882690dd9025caa625a023996c136377cb1Ying Wang    bionic/unlockpt.c \
73aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdio/findfp.c \
74aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdio/snprintf.c\
75aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdio/sprintf.c \
76aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    stdlib/atexit.c \
77aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    unistd/syslog.c \
78eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
7959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris# Fortify implementations of libc functions.
8059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferrislibc_common_src_files += \
8190201d5eca050414d50a433866ccb580415bb0d4Nick Kralevich    bionic/__FD_chk.cpp \
8259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__fgets_chk.cpp \
8359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__memmove_chk.cpp \
84b036b5ca36c1e12b075909b3eca6eab73ee611cfNick Kralevich    bionic/__read_chk.cpp \
8560f4f9a5b99a0a66817f50edfc2194a49f8b5146Nick Kralevich    bionic/__recvfrom_chk.cpp \
86950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    bionic/__stpcpy_chk.cpp \
87950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    bionic/__stpncpy_chk.cpp \
8859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strchr_chk.cpp \
8959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlcat_chk.cpp \
9059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlcpy_chk.cpp \
9159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strlen_chk.cpp \
9259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strncat_chk.cpp \
9359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strncpy_chk.cpp \
9459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__strrchr_chk.cpp \
9559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__umask_chk.cpp \
9659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__vsnprintf_chk.cpp \
9759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris    bionic/__vsprintf_chk.cpp \
9859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
9929c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hugheslibc_bionic_src_files := \
10061e699a133a4807fe878a6cb0d7190d7c96e21f8Elliott Hughes    bionic/abort.cpp \
101f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/access.cpp \
102063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/assert.cpp \
1035a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/atof.cpp \
104a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes    bionic/__bionic_name_mem.cpp \
10511952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/bionic_time_conversions.cpp \
106428f5567be25b8090e3dd72e2d3d337c305b514eElliott Hughes    bionic/brk.cpp \
107f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/chmod.cpp \
108f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/chown.cpp \
10958d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    bionic/clearenv.cpp \
110cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes    bionic/clock.cpp \
11136d6188f8cd8b948fb797f11d9620d63d0c2215aElliott Hughes    bionic/clone.cpp \
112ff64831b0965c16c95c9f81a148f30a6ef3a6c64Calin Juravle    bionic/cmsg_nxthdr.cpp \
113c30396f5f225e0b5a83a35432e2d82a7063cfdb9David 'Digit' Turner    bionic/dirent.cpp \
114cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/dup2.cpp \
115cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/epoll_create.cpp \
11611952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/epoll_pwait.cpp \
117aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/epoll_wait.cpp \
1182a0b873065edb304fa2d1c54f8de663ea638b8abElliott Hughes    bionic/__errno.cpp \
1199b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng    bionic/eventfd_read.cpp \
1209b84824dfd597d8137137fa33295faa26cc70ae0Kito Cheng    bionic/eventfd_write.cpp \
121bf425680e484486803bf21e4c4cd1e3f36614a3cElliott Hughes    bionic/ffs.cpp \
12253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    bionic/flockfile.cpp \
123232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes    bionic/fork.cpp \
12402c78a386739a8a2b3007efeb00a9ca04132100aElliott Hughes    bionic/fpclassify.cpp \
125d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1Elliott Hughes    bionic/futimens.cpp \
1262c5153b043b44e9935a334ae9b2d5a4bc5258b40Nick Kralevich    bionic/getauxval.cpp \
127063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/getcwd.cpp \
128247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/getpgrp.cpp \
129cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/inotify_init.cpp \
130f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/lchown.cpp \
131fe317a3775e16d466bb884a8e054fd77f7087bb3Calin Juravle    bionic/lfs64_support.cpp \
13242b2c6a5eed5e4ef35315b8cd32d1355f12a69b6Elliott Hughes    bionic/libc_init_common.cpp \
1338f2a5a0b40fc82126c691d5c30131d908772aab7Elliott Hughes    bionic/libc_logging.cpp \
13458b575485c446f9d76ee00f67516ed42cf017769Elliott Hughes    bionic/libgen.cpp \
135f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/link.cpp \
1365363a45f2b6d4eeb054710d0886bbadea8a15273Elliott Hughes    bionic/locale.cpp \
137f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/lstat.cpp \
138f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/mkdir.cpp \
139594b1a4af204aa9de2b4913182f4556e38d71648Elliott Hughes    bionic/mkfifo.cpp \
140f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/mknod.cpp \
141f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/open.cpp \
14211952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/pause.cpp \
143cac7b9d6ec1a09814bc028e2f768db732f018891Elliott Hughes    bionic/pipe.cpp \
14411952073af22568bba0b661f7a9d4402c443a888Elliott Hughes    bionic/poll.cpp \
145f64b8ea09db3bdd84eed59f7721301743332b3feElliott Hughes    bionic/posix_fallocate.cpp \
1464b558f50a42c97d461f1dede5aaaae490ea99e2eElliott Hughes    bionic/posix_timers.cpp \
147c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_atfork.cpp \
1483e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes    bionic/pthread_attr.cpp \
149c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_cond.cpp \
150c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_create.cpp \
1519d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_detach.cpp \
1529d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_equal.cpp \
153c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_exit.cpp \
1549d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_getcpuclockid.cpp \
1559d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_getschedparam.cpp \
1569d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_internals.cpp \
1579d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_join.cpp \
158c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_key.cpp \
1599d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_kill.cpp \
160c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_mutex.cpp \
161c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_once.cpp \
162c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/pthread_rwlock.cpp \
1639d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_self.cpp \
1643e898476c7230b60a0f76968e64ff25f475b48c0Elliott Hughes    bionic/pthread_setname_np.cpp \
1659d23e04c43dbb8480bea8be28b8a2f37423bec49Elliott Hughes    bionic/pthread_setschedparam.cpp \
166c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes    bionic/pthread_sigmask.cpp \
167c3f114037dbf028896310609fd28cf2b3da99c4dElliott Hughes    bionic/ptrace.cpp \
168d8a5a6f513c6fa99229e9c82c5c308c7cd6b3d54Chris Dearman    bionic/raise.cpp \
169f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/readlink.cpp \
170a38cb088619d3e2f2194247038c10897d1c5036eElliott Hughes    bionic/reboot.cpp \
171247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/recv.cpp \
172f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/rename.cpp \
173f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/rmdir.cpp \
174701bec2af33feaa9dddf12ccf8e4c714441b7f2eElliott Hughes    bionic/scandir.cpp \
1754ca685e36e9d7f53c135eba2b4b8ece152129dbeKito Cheng    bionic/sched_getaffinity.cpp \
176887e1140fe7596fa1239a0bc802d2cdb51c57d3cElliott Hughes    bionic/sched_getcpu.cpp \
177247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/send.cpp \
178232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes    bionic/setegid.cpp \
1794a9e837840fda3aaea48aeba85c7c7a8782d2586Elliott Hughes    bionic/__set_errno.cpp \
180232163cf70712fe00436b70dd495f4cf405e9eabElliott Hughes    bionic/seteuid.cpp \
1815a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/setpgrp.cpp \
182c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigaction.cpp \
183c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigaddset.cpp \
184c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigdelset.cpp \
185c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigemptyset.cpp \
186c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigfillset.cpp \
187c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/sigismember.cpp \
188c7e9b2331771e5e87c34a8ee3dc6cc41d35b02feElliott Hughes    bionic/signal.cpp \
189aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/signalfd.cpp \
19040d105ccb3e6283566ce54b693b3088f31aa4f26Elliott Hughes    bionic/sigpending.cpp \
19119e62325c268a668692e2b65fde2284079f369aaElliott Hughes    bionic/sigprocmask.cpp \
1921f5af926fa626734981d6b4dcc0ab54e520032a9Elliott Hughes    bionic/sigsuspend.cpp \
193c5d028fc913de84a781bd61084bf7ae2182fd48eElliott Hughes    bionic/sigwait.cpp \
194f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/stat.cpp \
19506040fd75c1edff9e5ffb2b3d3e2a6e66d57c11dElliott Hughes    bionic/statvfs.cpp \
196063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strerror.cpp \
197063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strerror_r.cpp \
198063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/strsignal.cpp \
1995a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/strtold.cpp \
200063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/stubs.cpp \
201f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/symlink.cpp \
20291a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes    bionic/sysconf.cpp \
203aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/sys_siglist.c \
204aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/sys_signame.c \
2055a8173860d65182af022be88fed0c5d8d5dcb69dElliott Hughes    bionic/system_properties.cpp \
206063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/tdestroy.cpp \
2078d4b5849f21dc4115ad66944dc11df838b3faa52Elliott Hughes    bionic/termios.cpp \
208aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes    bionic/thread_atexit.cpp \
209063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/tmpfile.cpp \
210247dc91889ffc8b71fc3371edba9d834afab96abElliott Hughes    bionic/umount.cpp \
211f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/unlink.cpp \
212f8fcfbc85a3ce3e195626b90736d3a484331494bElliott Hughes    bionic/utimes.cpp \
21317a8b0db63d54e9d79bf11112ace0c4fe9606289Elliott Hughes    bionic/wait.cpp \
214063cfb2084ea4b12d3c85b2d2c44e888f0857eb4Elliott Hughes    bionic/wchar.cpp \
21529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
216f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hugheslibc_upstream_freebsd_src_files := \
21757a883640f3b43bf5e332d64489b3eab67a5ac3fElliott Hughes    upstream-freebsd/lib/libc/gen/ldexp.c \
218ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes    upstream-freebsd/lib/libc/gen/sleep.c \
219ab61eb366ac48addf2bca6093a34455193f5c8dfElliott Hughes    upstream-freebsd/lib/libc/gen/usleep.c \
2206b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes    upstream-freebsd/lib/libc/stdio/fclose.c \
2216b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes    upstream-freebsd/lib/libc/stdio/flags.c \
2226b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes    upstream-freebsd/lib/libc/stdio/fopen.c \
2236b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes    upstream-freebsd/lib/libc/stdio/fwrite.c \
224677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes    upstream-freebsd/lib/libc/stdio/makebuf.c \
225284f7880323d33356df682c3cfb6b7f0c665bfd4Elliott Hughes    upstream-freebsd/lib/libc/stdio/mktemp.c \
226677ee5647721df22f13909375d5d0e770a1a80bfElliott Hughes    upstream-freebsd/lib/libc/stdio/setvbuf.c \
2276b05c8e28017518fae04a3a601d0d245916561d2Elliott Hughes    upstream-freebsd/lib/libc/stdio/wsetup.c \
228aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/abs.c \
229d278b828fef47fb2d7098f8ec70867fbd3da09d6Elliott Hughes    upstream-freebsd/lib/libc/stdlib/getopt_long.c \
230aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/imaxabs.c \
231aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/imaxdiv.c \
232aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/labs.c \
233aec2ffbc5a7b45368ceab3663265fbb659968fe7Elliott Hughes    upstream-freebsd/lib/libc/stdlib/llabs.c \
2340b25f633a23e575c8a1f9547d1af5dc5b0157a1cElliott Hughes    upstream-freebsd/lib/libc/stdlib/qsort.c \
235f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes    upstream-freebsd/lib/libc/stdlib/realpath.c \
236eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcpcpy.c \
237eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcpncpy.c \
238eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcscasecmp.c \
239eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcscspn.c \
240eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsdup.c \
241eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcslcat.c \
242eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncasecmp.c \
243eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncat.c \
244eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncmp.c \
245eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsncpy.c \
246eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsnlen.c \
247eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcspbrk.c \
248eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcsspn.c \
249eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wcstok.c \
250eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemchr.c \
251eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemcpy.c \
252eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemmove.c \
253eb93ebffba21e2c9b8a12bb86db60d38c7750270Elliott Hughes    upstream-freebsd/lib/libc/string/wmemset.c \
254f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
255f8b3a920a895a53b207017249080087d562bd0d2Elliott Hugheslibc_upstream_netbsd_src_files := \
256e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes    upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
257e8bcca3a2ca4a70156c72239d62bb68eeb2929fdElliott Hughes    upstream-netbsd/common/lib/libc/inet/inet_addr.c \
258677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/ftw.c \
259677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/nftw.c \
260677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/nice.c \
261677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/popen.c \
262677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/psignal.c \
263677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/setjmperr.c \
264677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/gen/utime.c \
26519f58efa22357bfaa6a63a0940928830e95c5123Elliott Hughes    upstream-netbsd/lib/libc/gen/utmp.c \
266677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/inet/inet_ntoa.c \
267677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/inet/inet_ntop.c \
268677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/inet/inet_pton.c \
269677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/isc/ev_streams.c \
270677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/isc/ev_timers.c \
271677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regcomp.c \
272677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regerror.c \
273677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regexec.c \
274677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/regex/regfree.c \
275677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/bsearch.c \
276677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/div.c \
277677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/drand48.c \
278677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/erand48.c \
279677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/exit.c \
280677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/jrand48.c \
281677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/ldiv.c \
282677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/lldiv.c \
283677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/lrand48.c \
2847f3a272ae327c647db4caeaea2a3c7af50bd73b5Elliott Hughes    upstream-netbsd/lib/libc/stdlib/lsearch.c \
285677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/mrand48.c \
286677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/nrand48.c \
287677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/_rand48.c \
288677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/seed48.c \
289677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/srand48.c \
290677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/tdelete.c \
291677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/tfind.c \
292677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/stdlib/tsearch.c \
293677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/memccpy.c \
294677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strcasestr.c \
295677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strcoll.c \
296677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/string/strxfrm.c \
297677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/thread-stub/__isthreaded.c \
298677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    upstream-netbsd/lib/libc/unistd/killpg.c \
299f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
3004bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files := \
301d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    upstream-openbsd/android/gdtoa_support.cpp \
3024bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/dmisc.c \
3034bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/dtoa.c \
3044bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gdtoa.c \
3054bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gethex.c \
3064bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/gmisc.c \
3074bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hd_init.c \
3084bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hdtoa.c \
3094bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/hexnan.c \
3104bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/ldtoa.c \
3114bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/misc.c \
3124bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/smisc.c \
3134bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtod.c \
3144bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtodg.c \
3154bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtof.c \
3164bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtord.c \
3174bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/sum.c \
3184bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/ulp.c \
3194bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
3204bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files_32 := \
3214bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_upstream_openbsd_gdtoa_src_files) \
3224bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
3234bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hugheslibc_upstream_openbsd_gdtoa_src_files_64 := \
3244bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_upstream_openbsd_gdtoa_src_files) \
3254bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    upstream-openbsd/lib/libc/gdtoa/strtorQ.c \
3264bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
32753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hugheslibc_upstream_openbsd_src_files := \
328aedb00d04eb7f0b20b6abde702ba94a46577ca68Elliott Hughes    upstream-openbsd/lib/libc/gen/alarm.c \
329f3c73901cb5ca4de2651151cf2c65b31a729466eElliott Hughes    upstream-openbsd/lib/libc/gen/ctype_.c \
33053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/exec.c \
33153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/fnmatch.c \
332692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/ftok.c \
333692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/getprogname.c \
334f3c73901cb5ca4de2651151cf2c65b31a729466eElliott Hughes    upstream-openbsd/lib/libc/gen/isctype.c \
335692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/setprogname.c \
336cccfe1e17c47799deee67fa23f48d8c860390ac8Elliott Hughes    upstream-openbsd/lib/libc/gen/time.c \
33753e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/gen/tolower_.c \
338692207eb457f9b4bf6cb4301d710d19b6e85c902Elliott Hughes    upstream-openbsd/lib/libc/gen/toupper_.c \
3393d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/btowc.c \
3403d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/mbrlen.c \
3413d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/mbstowcs.c \
3420a5e26da1eae6b75a89695faf2e057c5c4717721Elliott Hughes    upstream-openbsd/lib/libc/locale/mbtowc.c \
343c8937eadf4a45afebe586dcea7a8ed882f3bec3bElliott Hughes    upstream-openbsd/lib/libc/locale/wcscoll.c \
3443d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstod.c \
3453d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstof.c \
34601ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoimax.c \
3473d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstol.c \
3483d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstold.c \
3493d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoll.c \
3503d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstombs.c \
3513d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoul.c \
3523d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoull.c \
35301ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/locale/wcstoumax.c \
354ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/locale/wcsxfrm.c \
3553d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes    upstream-openbsd/lib/libc/locale/wctob.c \
356ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/asprintf.c \
357ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/clrerr.c \
358ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fdopen.c \
359ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/feof.c \
36053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/ferror.c \
36153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fflush.c \
362ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetc.c \
363ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetln.c \
364ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetpos.c \
365ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgets.c \
36601ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/fgetwc.c \
367c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fgetws.c \
368ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fileno.c \
369ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fprintf.c \
37053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fpurge.c \
371ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fputc.c \
37253e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fputs.c \
373c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fputwc.c \
374c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fputws.c \
3759d3c2dd11f5e796cd814cddc5b907494f859058eElliott Hughes    upstream-openbsd/lib/libc/stdio/fread.c \
376ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/freopen.c \
377ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fscanf.c \
37853e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/fseek.c \
379ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fsetpos.c \
380ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/ftell.c \
381ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/funopen.c \
3829d3c2dd11f5e796cd814cddc5b907494f859058eElliott Hughes    upstream-openbsd/lib/libc/stdio/fvwrite.c \
383ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwalk.c \
384c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/fwide.c \
38594336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwprintf.c \
38601ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/fwscanf.c \
387ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getc.c \
388ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getchar.c \
389ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/getdelim.c \
39053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/getline.c \
39153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/gets.c \
392c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/getwc.c \
393c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/getwchar.c \
394ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/perror.c \
395ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/printf.c \
39653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/putc.c \
397ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/putchar.c \
398ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/puts.c \
399f2cea021ab2c6d7d7feeb40cca098aa132605876Elliott Hughes    upstream-openbsd/lib/libc/stdio/putw.c \
400c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/putwc.c \
401c932225e1061dc57fc4bf2d6203d9737f4f989faElliott Hughes    upstream-openbsd/lib/libc/stdio/putwchar.c \
402ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/refill.c \
403ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/remove.c \
404ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/rewind.c \
40553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/rget.c \
40653e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdio/scanf.c \
407ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/setbuf.c \
408ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/setbuffer.c \
409603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/sscanf.c \
410ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/stdio.c \
41194336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/swprintf.c \
41201ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/swscanf.c \
413ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/tempnam.c \
414ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/tmpnam.c \
415ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/ungetc.c \
41601ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/ungetwc.c \
417ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vasprintf.c \
4180549371bd74ba7c7a5a16c2a7d6cc17dbe0e6f97Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfprintf.c \
419603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfscanf.c \
42094336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfwprintf.c \
42101ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vfwscanf.c \
422ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vprintf.c \
423ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vscanf.c \
424ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsnprintf.c \
425ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsprintf.c \
426603332fc4c2d073f0e197f9ce4517710e9b3a6d0Elliott Hughes    upstream-openbsd/lib/libc/stdio/vsscanf.c \
42794336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vswprintf.c \
42801ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vswscanf.c \
42994336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/vwprintf.c \
43001ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/vwscanf.c \
431ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdio/wbuf.c \
43294336d8ecf795cfdde874a1e15977d68cfc7afc1Elliott Hughes    upstream-openbsd/lib/libc/stdio/wprintf.c \
43301ae00f3170ad0e36c1657f6ff8c89dfa730fd37Elliott Hughes    upstream-openbsd/lib/libc/stdio/wscanf.c \
43453e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atoi.c \
43553e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atol.c \
436ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/atoll.c \
43758d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    upstream-openbsd/lib/libc/stdlib/getenv.c \
43858d9e280d459225aa8dc4533e883182b08215f7dElliott Hughes    upstream-openbsd/lib/libc/stdlib/setenv.c \
43953e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoimax.c \
44053e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtol.c \
441ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoll.c \
442ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoul.c \
443ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoull.c \
444ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/stdlib/strtoumax.c \
4451e4378ea06d06f57027a97714f076ad4f417a705Elliott Hughes    upstream-openbsd/lib/libc/stdlib/system.c \
446950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    upstream-openbsd/lib/libc/string/stpcpy.c \
447950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris    upstream-openbsd/lib/libc/string/stpncpy.c \
448ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strcasecmp.c \
449ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strcspn.c \
450ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strdup.c \
451ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strndup.c \
452ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strpbrk.c \
453ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strsep.c \
454ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strspn.c \
455ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strstr.c \
456ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/strtok.c \
457ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/wcslcpy.c \
458d299bcfdad959a3a0adf1683605b15a1c3b3ab66Elliott Hughes    upstream-openbsd/lib/libc/string/wcsstr.c \
459d299bcfdad959a3a0adf1683605b15a1c3b3ab66Elliott Hughes    upstream-openbsd/lib/libc/string/wcswcs.c \
460ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9Elliott Hughes    upstream-openbsd/lib/libc/string/wcswidth.c \
46153e43292aac91bf62995788cd5ca2ceb7caea283Elliott Hughes
462f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wanglibc_arch_static_src_files := \
463f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/dl_iterate_phdr_static.cpp \
4647c83a1ed81a15f3e75836c1ac7d500a952f02e10Christopher Ferris
465ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags
466ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
4671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \
468470631ed79538ce912edb94505dee3e24af8db89Elliott Hughes    -D_LIBC=1 \
4692ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Wall -Wextra \
4702ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes
4712ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
4722ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hugheslibc_common_cflags += \
4732ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=pointer-to-int-cast \
4742ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=int-to-pointer-cast \
4752ec400bfc7d1605b68ae3f5501add7bf2647b9ddElliott Hughes    -Werror=type-limits \
4761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
477d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
4781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project  libc_common_cflags += -DDEBUG
4791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif
4801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
4812fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in
4822fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren# the appropriate BoardConfig.mk file.
4832fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren#
4842fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renifneq ($(BOARD_MALLOC_ALIGNMENT),)
4852fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren  libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT)
4862fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Renendif
4872fd81ef71c10aecf6583facdd79f8f60f3eed678Jack Ren
488fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden# Define ANDROID_SMP appropriately.
489fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenifeq ($(TARGET_CPU_SMP),true)
490fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden    libc_common_cflags += -DANDROID_SMP=1
491fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenelse
492fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden    libc_common_cflags += -DANDROID_SMP=0
493fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFaddenendif
494fcd00ebbdf3e7f4e1e7782a65ae10fb0fc03a1aaAndy McFadden
495762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common conlyflags
496762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_conlyflags := \
497762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines    -std=gnu99
498762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines
499762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines# Define some common cppflags
500762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hineslibc_common_cppflags := \
501762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines    -std=gnu++11
502762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines
503ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes
504ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
5051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_c_includes := \
50676c8b882690dd9025caa625a023996c136377cb1Ying Wang    $(LOCAL_PATH)/stdlib  \
50776c8b882690dd9025caa625a023996c136377cb1Ying Wang    $(LOCAL_PATH)/stdio   \
5081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
509f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# ========================================================
510f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Add in the arch-specific flags.
511f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# Must be called with $(eval).
512f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(1): the LOCAL_ variable name
513f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# $(2): the bionic variable name to pull in
514f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangdefine patch-up-arch-specific-flags
515f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_ARCH) += $($(2)_$(TARGET_ARCH))
516f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
517f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(1)_$(TARGET_2ND_ARCH) += $($(2)_$(TARGET_2ND_ARCH))
518a4c7933b49f1d43579f184167e79a5fb237bd206Raghu Gandhamendif
519f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendef
520f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
5211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
522ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
5236380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes# libc_stack_protector.a - stack protector code
5246334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ========================================================
5256334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich#
5266334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# The stack protector code needs to be compiled
5276334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# with -fno-stack-protector, since it modifies the
5286334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# stack canary.
5296334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
5306334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(CLEAR_VARS)
5316334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
532642331b5dd5647e7d196ac4f44406fd435478a56Elliott HughesLOCAL_SRC_FILES := bionic/__stack_chk_fail.cpp
533dc5ec07158079b39f758ed41eca5b937e52c3729Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector -Werror
534762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
535762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
5366334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_C_INCLUDES := $(libc_common_c_includes)
5376380b51a8d775a3b572b2db15195f279cb5565f6Elliott HughesLOCAL_MODULE := libc_stack_protector
538d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
5396334c662cae4cd9b61f5f3185048b0cd3633dad7Nick KralevichLOCAL_SYSTEM_SHARED_LIBRARIES :=
5406334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
541f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
5426334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevichinclude $(BUILD_STATIC_LIBRARY)
5436334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
5446334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich
5456334c662cae4cd9b61f5f3185048b0cd3633dad7Nick Kralevich# ========================================================
546ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# libc_tzcode.a - upstream 'tzcode' code
547ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ========================================================
548ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
549ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(CLEAR_VARS)
550ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
5511fbe6213cdd9fda7e7b816e608b887ad8a0ad265Elliott HughesLOCAL_SRC_FILES := $(call all-c-files-under,tzcode)
552329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes
553329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS := $(libc_common_cflags)
554329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Don't use ridiculous amounts of stack.
555329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DALL_STATE
556329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Include tzsetwall, timelocal, timegm, time2posix, and posix2time.
557329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DSTD_INSPIRED
558329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# The name of the tm_gmtoff field in our struct tm.
559329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DTM_GMTOFF=tm_gmtoff
560329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Where we store our tzdata.
561329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DTZDIR=\"/system/usr/share/zoneinfo\"
562329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes# Include timezone and daylight globals.
563329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott HughesLOCAL_CFLAGS += -DUSG_COMPAT=1
564329103d3e2f42d3e35a060c3e0d326d6476eb2efElliott Hughes
565762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
566762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
567ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
568ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_MODULE := libc_tzcode
569d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
570ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
571ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
572f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
573ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
574ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
575ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes
576ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes# ========================================================
577eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# libc_dns.a - modified NetBSD DNS code
578eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ========================================================
579eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
580eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(CLEAR_VARS)
581eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
582bd33537fde8e1c68fcadfd6adf77b295ada9b45fCalin JuravleLOCAL_SRC_FILES := $(call all-c-files-under,dns)
583eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := \
584eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    $(libc_common_cflags) \
585205c7887add8b8c85434c35158138f16265beb28Elliott Hughes    -DANDROID_CHANGES \
586eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    -DINET6 \
587cecc036970fba8b319cca302768865677f2be094Calin Juravle    -I$(LOCAL_PATH)/dns/include \
588eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    -I$(LOCAL_PATH)/private \
589fcb502e3ec032497bba7f8634fb214e0c05394d8Calin Juravle    -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
590d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include upstream-netbsd/android/include/netbsd-compat.h
591eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
592eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
593eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
594eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_MODULE := libc_dns
595eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
596eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
597eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
598f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
599eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
600eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
601eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
602eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes# ========================================================
603f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# libc_freebsd.a - upstream FreeBSD C library code
604f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ========================================================
605f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes#
606f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# These files are built with the freebsd-compat.h header file
607f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# automatically included.
608f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
609f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(CLEAR_VARS)
610f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
611f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files)
612f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_CFLAGS := \
613f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes    $(libc_common_cflags) \
614d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -I$(LOCAL_PATH)/upstream-freebsd/android/include \
61502c78a386739a8a2b3007efeb00a9ca04132100aElliott Hughes    -I$(LOCAL_PATH)/upstream-freebsd/lib/libc/include \
616d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include freebsd-compat.h
617762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
618762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
619f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
620f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_MODULE := libc_freebsd
621d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
622f0777843c03deb26b1f78c8edd17c557041696e9Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
623f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
624f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
625f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
626f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
627f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes
628f0777843c03deb26b1f78c8edd17c557041696e9Elliott Hughes# ========================================================
629f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# libc_netbsd.a - upstream NetBSD C library code
630f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ========================================================
631f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes#
632f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# These files are built with the netbsd-compat.h header file
633f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# automatically included.
634f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
635f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(CLEAR_VARS)
636f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
637f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_netbsd_src_files)
638f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_CFLAGS := \
639f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes    $(libc_common_cflags) \
640eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    -DPOSIX_MISTAKE \
641d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -I$(LOCAL_PATH)/upstream-netbsd/android/include \
642677b6e605be95f434602f19a627ea0dea2927ccdElliott Hughes    -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \
643d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include netbsd-compat.h
644762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
645762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
646f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
647f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_MODULE := libc_netbsd
648d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
649f8b3a920a895a53b207017249080087d562bd0d2Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
650f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
651f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
652f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
653f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
654f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
655f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes# ========================================================
6560133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# libc_openbsd.a - upstream OpenBSD C library code
6570133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ========================================================
6580133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes#
6590133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# These files are built with the openbsd-compat.h header file
6600133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# automatically included.
6610133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
6620133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(CLEAR_VARS)
6630133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
66453e43292aac91bf62995788cd5ca2ceb7caea283Elliott HughesLOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
6650133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CFLAGS := \
6660133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes    $(libc_common_cflags) \
667d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -I$(LOCAL_PATH)/upstream-openbsd/android/include \
6680133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes    -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
669d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include openbsd-compat.h
6700133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
6710133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
6720133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
6730133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_MODULE := libc_openbsd
6740133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
6750133944b09d1c0a35041f7a41eb6bfb660144f4fElliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
6760133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
6770133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
6780133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughesinclude $(BUILD_STATIC_LIBRARY)
6790133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
6800133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes
6810133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes# ========================================================
6824bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# libc_gdtoa.a - upstream OpenBSD C library gdtoa code
6834bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# ========================================================
6844bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes#
6854bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# These files are built with the openbsd-compat.h header file
6864bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# automatically included.
6874bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
6884bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughesinclude $(CLEAR_VARS)
6894bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
6904bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
6914bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
6924bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CFLAGS := \
6934bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    $(libc_common_cflags) \
694cce36c187896fb0d4bd36519c4b2e90c502137dcElliott Hughes    -fvisibility=hidden \
695d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -I$(LOCAL_PATH)/upstream-openbsd/android/include \
6964bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
697d39f3f2c2e7fc73ddb019695f0df3417deef5bf4Elliott Hughes    -include openbsd-compat.h \
6984bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
6994bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
7004bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_CPPFLAGS := $(libc_common_cppflags)
7014bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
7024bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_gdtoa
7034bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
7044bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
7054bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
7064bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
7074bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
7084bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
7094bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes
7104bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# ========================================================
71129c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# libc_bionic.a - home-grown C library code
71229c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ========================================================
713e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes
71429c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(CLEAR_VARS)
71529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
71629c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SRC_FILES := $(libc_bionic_src_files)
71729c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags) -Werror
718762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
719762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
72029c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_C_INCLUDES := $(libc_common_c_includes)
72129c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_MODULE := libc_bionic
722d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
72329c7f0b4d18f812267c2194b85204e19e41d0387Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
72429c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
72566759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Set -DPTHREAD_DEBUG_ENABLED=true to enable support for pthread deadlock prediction.
72666759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes# Since this code is experimental it is disabled by default.
727f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS += -DPTHREAD_DEBUG_ENABLED=false
72866759d6041b33706c3a92dde48492ba4f2bbab2fElliott Hughes
729c1005aaf8ea8f9eab515a5b06b80a706faba6e43Mark Salyzynifneq ($(TARGET_USES_LOGD),false)
730f38292862b0a560f082ce1ccefc587dd2f58b893Mark SalyzynLOCAL_CFLAGS += -DTARGET_USES_LOGD
731f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzynendif
732f38292862b0a560f082ce1ccefc587dd2f58b893Mark Salyzyn
733f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
734f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_bionic_src_files))
73529c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
73629c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
73729c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes
73829c7f0b4d18f812267c2194b85204e19e41d0387Elliott Hughes# ========================================================
739b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# libc_syscalls.a
740b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ========================================================
741b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
742b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(CLEAR_VARS)
743b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
744f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_ARCH) := $(call all-S-files-under,arch-$(TARGET_ARCH)/syscalls)
745f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangifdef TARGET_2ND_ARCH
746f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_$(TARGET_2ND_ARCH) := $(call all-S-files-under,arch-$(TARGET_2ND_ARCH)/syscalls)
747f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif
748b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_MODULE := libc_syscalls
749b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
750b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott HughesLOCAL_SYSTEM_SHARED_LIBRARIES :=
751b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
752b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughesinclude $(BUILD_STATIC_LIBRARY)
753b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
754b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes
755b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes# ========================================================
756ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a
757ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
758f8b3a920a895a53b207017249080087d562bd0d2Elliott Hughes
759ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS)
7601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
761ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files)
762eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott HughesLOCAL_CFLAGS := $(libc_common_cflags)
763762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
764762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
765ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes)
7661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common
767d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
768ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott HughesLOCAL_WHOLE_STATIC_LIBRARIES := \
769ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_bionic \
770eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    libc_dns \
771ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_freebsd \
7724bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes    libc_gdtoa \
773ce4783ce76a4ef888466e02e4c6f3a0a3910bce8Elliott Hughes    libc_netbsd \
7740133944b09d1c0a35041f7a41eb6bfb660144f4fElliott Hughes    libc_openbsd \
7756380b51a8d775a3b572b2db15195f279cb5565f6Elliott Hughes    libc_stack_protector \
776b3a23bd0178c8edbb34e310be08e6fb73ac6ba09Elliott Hughes    libc_syscalls \
777eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes    libc_tzcode \
778eb847bc8666842a3cfc9c06e8458ad1abebebaf0Elliott Hughes
7791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
7801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
781c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang# TODO: split out the asflags.
782c97c5fc7880267fd835d22946a920bf370461cf2Ying WangLOCAL_ASFLAGS := $(LOCAL_CFLAGS)
783c97c5fc7880267fd835d22946a920bf370461cf2Ying Wang
784f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
785f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_common_src_files))
786f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_ASFLAGS,LOCAL_CFLAGS))
7871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY)
7881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
7891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
790ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
79149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a
79249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ========================================================
79349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin#
79449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not
79591a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# include malloc. It's useful in situations when the user wants
79691a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# to provide their own malloc implementation, or wants to
79791a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# explicitly disallow the use of the use of malloc,
79891a9925998f2b878f0245ce03aab22cc412a4d8bElliott Hughes# such as in the dynamic loader.
79949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
80049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS)
80149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
80249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \
803f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_arch_static_src_files) \
804f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_static_common_src_files) \
805f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/libc_init_static.cpp
80649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
80749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes)
8086a51defa034a1c033ed01f7de444c0a4fc615249David 'Digit' TurnerLOCAL_CFLAGS := $(libc_common_cflags) \
809762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines                -DLIBC_STATIC
810762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
811762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
81249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
81349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc
814d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
81549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
81649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES :=
81749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
818f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
819f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
82049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY)
82149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
82249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin
82349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ========================================================
8241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a
8251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
8261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
8271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
829f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_arch_static_src_files) \
830f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_static_common_src_files) \
831f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/dlmalloc.c \
832f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_common.cpp \
833f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/libc_init_static.cpp \
8341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
835b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := $(libc_common_cflags) \
836762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen Hines                -DLIBC_STATIC
837762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
838762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
8391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes)
840ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc
841d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
8421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
8431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
8441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
845f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
846f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_static_src_files))
8471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY)
8481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
850ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
8511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so
8521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
8531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
8541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
85566759d6041b33706c3a92dde48492ba4f2bbab2fElliott HughesLOCAL_CFLAGS := $(libc_common_cflags)
856762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
857762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
8581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes)
8591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
861e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    $(libc_arch_dynamic_src_files) \
862e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    $(libc_static_common_src_files) \
863e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/dlmalloc.c \
864e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/malloc_debug_common.cpp \
865e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/debug_mapinfo.cpp \
866e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/debug_stacktrace.cpp \
867e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/pthread_debug.cpp \
868e7c59f9e2041812c597ff1c8689d47d1bfd32883Elliott Hughes    bionic/libc_init_dynamic.cpp \
8691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8704bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc
871d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
872914d8d4cff10f023ccd382fb43b2c7833dd34f72Elliott HughesLOCAL_REQUIRED_MODULES := tzdata
8731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8740ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# Leave the symbols in the shared library so that stack unwinders can produce
8750ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris# meaningful name resolution.
8760ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher FerrisLOCAL_STRIP_MODULE := keep_symbols
8770ae6445e9a85291b3a20da7f7a5b948cd18d3424Christopher Ferris
8781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so!  If you add other libraries,
8791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries.  This
8801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared
8811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it
8821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries.  That would
8834bd97cee28dd815fff54fc97560be60d566c1fa5Elliott Hughes# create a "cloaked" dependency on libgcc.a in libc though the libraries, which is not what
8841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted!
8851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
8861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl
8871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
8881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
8891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
890f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
89176c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_arch_dynamic_src_files))
89276c8b882690dd9025caa625a023996c136377cb1Ying Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_SRC_FILES,libc_static_common_src_files))
893f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang# special for arm
894f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_NO_CRT_arm := true
895f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_CFLAGS_arm += -DCRT_LEGACY_WORKAROUND
896f25d677147ae55a1f3b6ef7fa3ee27921792813fYing WangLOCAL_SRC_FILES_arm += \
897f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-common/bionic/crtbegin_so.c \
898f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-arm/bionic/atexit_legacy.c \
899f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    arch-common/bionic/crtend_so.S
900f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang
9011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY)
9021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
9031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
904b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# For all builds, except for the -user build we will enable memory
905b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# allocation checking (including memory leaks, buffer overwrites, etc.)
906b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Note that all these checks are also controlled by env. settings
907b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# that can enable, or disable specific checks. Note also that some of
908b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# the checks are available only in emulator and are implemeted in
909b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_qemu_instrumented.so.
910b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineifneq ($(TARGET_BUILD_VARIANT),user)
911b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
912ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================
913b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_leak.so
9141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
9151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS)
9161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
917ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := \
918f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_common_cflags) \
919f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -DMALLOC_LEAK_CHECK
920762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
921762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
9221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
9231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes)
9241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
9251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \
926f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/debug_mapinfo.cpp \
927f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/debug_stacktrace.cpp \
928f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_leak.cpp \
929f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_check.cpp \
9301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
9314bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_malloc_debug_leak
932d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
9331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
934e007775f4b21f6b94078ed1d34b753435ba28fdaPavel ChupinLOCAL_SHARED_LIBRARIES := libc libdl
935b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
936b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SYSTEM_SHARED_LIBRARIES :=
937aa46fa24035f3ab020f9a7abd86c25ae2196bb32Bruce BeareLOCAL_ALLOW_UNDEFINED_SYMBOLS := true
938368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev
939b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't install on release build
940b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug
9411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
942f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
943b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(BUILD_SHARED_LIBRARY)
944b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
945b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
946b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ========================================================
947b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_qemu.so
948b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ========================================================
949b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(CLEAR_VARS)
950b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
951b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := \
952f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    $(libc_common_cflags) \
953f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    -DMALLOC_QEMU_INSTRUMENT
954762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CONLYFLAGS := $(libc_common_conlyflags)
955762cea46f070e25b33de6f36a54fb7c293f0fee5Stephen HinesLOCAL_CPPFLAGS := $(libc_common_cppflags)
956b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
957b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_C_INCLUDES := $(libc_common_c_includes)
958b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
959b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SRC_FILES := \
960f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang    bionic/malloc_debug_qemu.cpp
961b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
9624bd97cee28dd815fff54fc97560be60d566c1fa5Elliott HughesLOCAL_MODULE := libc_malloc_debug_qemu
963d7a632948d5b3128cc536a2c4db3124b4fa57a80Christopher FerrisLOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies)
964b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
9657c0c3793722aea293c45921ef50e4adcdf9645ceMathias AgopianLOCAL_SHARED_LIBRARIES := libc libdl
9661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common
9671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES :=
968368070454b1349d1fcf29a5d1eb51c869fb538f6Iliyan Malchev
9691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build
970b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug
9711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
972f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wang$(eval $(call patch-up-arch-specific-flags,LOCAL_CFLAGS,libc_common_cflags))
9731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY)
9741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project
975f25d677147ae55a1f3b6ef7fa3ee27921792813fYing Wangendif  #!user
976b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
977b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine
9781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ========================================================
9791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH))
980