2012-11-10 17:06:01 +01:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libc/unistd/Make.defs
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01: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
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01: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.
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Add the unistd C files to the build
|
|
|
|
|
2020-06-22 08:34:59 +02:00
|
|
|
CSRCS += lib_access.c lib_daemon.c lib_swab.c lib_pathconf.c lib_sysconf.c
|
2021-04-01 16:40:30 +02:00
|
|
|
CSRCS += lib_getopt_common.c lib_getopt.c lib_getopt_long.c
|
|
|
|
CSRCS += lib_getopt_longonly.c lib_getoptvars.c lib_getoptargp.c
|
2021-07-20 06:33:11 +02:00
|
|
|
CSRCS += lib_getopterrp.c lib_getoptindp.c lib_getoptoptp.c lib_times.c
|
2021-06-22 09:38:17 +02:00
|
|
|
CSRCS += lib_alarm.c lib_fstatvfs.c lib_statvfs.c lib_sleep.c lib_nice.c
|
2020-11-17 18:27:01 +01:00
|
|
|
CSRCS += lib_usleep.c lib_seteuid.c lib_setegid.c lib_geteuid.c lib_getegid.c
|
2021-07-08 20:55:42 +02:00
|
|
|
CSRCS += lib_setreuid.c lib_setregid.c lib_getrusage.c lib_utime.c lib_utimes.c
|
2021-06-22 09:38:17 +02:00
|
|
|
CSRCS += lib_setrlimit.c lib_getrlimit.c lib_setpriority.c lib_getpriority.c
|
|
|
|
CSRCS += lib_futimes.c lib_futimens.c lib_gethostname.c lib_sethostname.c
|
2019-08-06 22:13:43 +02:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_SCHED_USER_IDENTITY),y)
|
2019-08-06 20:38:43 +02:00
|
|
|
CSRCS += lib_setuid.c lib_setgid.c lib_getuid.c lib_getgid.c
|
2019-08-06 22:13:43 +02:00
|
|
|
endif
|
2012-11-10 17:06:01 +01:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_ENVIRON),y)
|
2020-07-28 10:05:02 +02:00
|
|
|
CSRCS += lib_chdir.c lib_getcwd.c lib_restoredir.c
|
2012-11-10 17:06:01 +01:00
|
|
|
endif
|
2013-01-08 17:25:30 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_LIBC_EXECFUNCS),y)
|
2014-09-15 18:15:19 +02:00
|
|
|
CSRCS += lib_execl.c
|
2013-01-08 17:25:30 +01:00
|
|
|
endif
|
2016-07-19 22:15:26 +02:00
|
|
|
|
2018-01-03 23:03:56 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_MOUNTPOINTS),y)
|
2020-12-14 03:56:23 +01:00
|
|
|
CSRCS += lib_truncate.c lib_posix_fallocate.c
|
2018-01-03 23:03:56 +01:00
|
|
|
endif
|
|
|
|
|
2016-07-19 22:15:26 +02:00
|
|
|
ifeq ($(CONFIG_PIPES),y)
|
2020-08-28 12:00:26 +02:00
|
|
|
CSRCS += lib_pipe.c lib_pipe2.c
|
2016-07-19 22:15:26 +02:00
|
|
|
endif
|
2012-11-10 17:06:01 +01:00
|
|
|
|
|
|
|
# Add the unistd directory to the build
|
|
|
|
|
|
|
|
DEPPATH += --dep-path unistd
|
|
|
|
VPATH += :unistd
|