2021-12-13 14:28:23 +01:00
|
|
|
############################################################################
|
|
|
|
# libs/libc/stream/Make.defs
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# Add the stdio C files to the build
|
|
|
|
# This first group of C files do not depend on having C streams.
|
|
|
|
|
|
|
|
CSRCS += lib_meminstream.c lib_memoutstream.c lib_memsistream.c
|
|
|
|
CSRCS += lib_memsostream.c lib_lowoutstream.c lib_rawinstream.c
|
|
|
|
CSRCS += lib_rawoutstream.c lib_rawsistream.c lib_rawsostream.c
|
|
|
|
CSRCS += lib_zeroinstream.c lib_nullinstream.c lib_nulloutstream.c
|
|
|
|
CSRCS += lib_libnoflush.c lib_libsnoflush.c
|
|
|
|
|
|
|
|
# The remaining sources files depend upon C streams
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_FILE_STREAM),y)
|
|
|
|
CSRCS += lib_stdinstream.c lib_stdoutstream.c lib_stdsistream.c
|
|
|
|
CSRCS += lib_stdsostream.c
|
|
|
|
endif
|
|
|
|
|
2021-11-23 11:33:20 +01:00
|
|
|
ifeq ($(CONFIG_LIBC_LZF),y)
|
|
|
|
CSRCS += lib_lzfcompress.c
|
|
|
|
endif
|
|
|
|
|
2022-01-10 15:56:39 +01:00
|
|
|
ifeq ($(CONFIG_DISABLE_MOUNTPOINT),)
|
|
|
|
CSRCS += lib_blkoutstream.c
|
|
|
|
endif
|
|
|
|
|
2021-12-13 14:28:23 +01:00
|
|
|
# Add the stdio directory to the build
|
|
|
|
|
|
|
|
DEPPATH += --dep-path stream
|
|
|
|
VPATH += :stream
|