2014-08-09 03:53:29 +08:00
|
|
|
############################################################################
|
|
|
|
# sched/pthread/Make.defs
|
|
|
|
#
|
2020-05-08 21:23:26 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2014-08-09 03:53:29 +08:00
|
|
|
#
|
2020-05-08 21:23:26 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-09 03:53:29 +08:00
|
|
|
#
|
2020-05-08 21:23:26 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2014-08-09 03:53:29 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
|
|
|
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += pthread_create.c pthread_exit.c pthread_join.c pthread_detach.c
|
2017-06-14 21:21:01 +08:00
|
|
|
CSRCS += pthread_getschedparam.c pthread_setschedparam.c
|
2017-03-27 07:37:28 +08:00
|
|
|
CSRCS += pthread_mutexinit.c pthread_mutexdestroy.c
|
2019-02-26 08:19:13 +08:00
|
|
|
CSRCS += pthread_mutextimedlock.c pthread_mutextrylock.c pthread_mutexunlock.c
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += pthread_condwait.c pthread_condsignal.c pthread_condbroadcast.c
|
2020-07-27 13:46:03 +08:00
|
|
|
CSRCS += pthread_condclockwait.c pthread_kill.c pthread_sigmask.c
|
2016-12-11 05:16:46 +08:00
|
|
|
CSRCS += pthread_cancel.c
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += pthread_initialize.c pthread_completejoin.c pthread_findjoininfo.c
|
2017-06-14 21:30:49 +08:00
|
|
|
CSRCS += pthread_release.c pthread_setschedprio.c
|
2014-08-09 03:53:29 +08:00
|
|
|
|
2017-03-27 07:37:28 +08:00
|
|
|
ifneq ($(CONFIG_PTHREAD_MUTEX_UNSAFE),y)
|
|
|
|
CSRCS += pthread_mutex.c pthread_mutexconsistent.c pthread_mutexinconsistent.c
|
|
|
|
endif
|
|
|
|
|
2016-02-20 07:59:19 +08:00
|
|
|
ifeq ($(CONFIG_SMP),y)
|
|
|
|
CSRCS += pthread_setaffinity.c pthread_getaffinity.c
|
|
|
|
endif
|
|
|
|
|
2016-12-08 23:27:13 +08:00
|
|
|
ifeq ($(CONFIG_PTHREAD_CLEANUP),y)
|
|
|
|
CSRCS += pthread_cleanup.c
|
|
|
|
endif
|
|
|
|
|
2014-08-09 03:53:29 +08:00
|
|
|
# Include pthread build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path pthread
|
|
|
|
VPATH += :pthread
|
2020-05-08 21:23:26 +08:00
|
|
|
|
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|