2022-10-26 15:33:09 +03:00
# Copyright (C) 2018 - 2022 Red Hat, Inc. All rights reserved.
2018-05-14 14:16:43 +03:00
#
# This file is part of the device-mapper userspace tools.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU Lesser General Public License v.2.1.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2018-12-15 03:55:11 +03:00
# NOTE: this Makefile only works as 'include' for toplevel Makefile
2018-11-29 23:47:11 +03:00
# which defined all top_* variables
2018-05-14 14:16:43 +03:00
DEVICE_MAPPER_SOURCE = \
device_mapper/datastruct/bitset.c \
2018-12-14 23:50:09 +03:00
device_mapper/ioctl/libdm-iface.c \
2018-05-14 14:16:43 +03:00
device_mapper/libdm-common.c \
device_mapper/libdm-config.c \
device_mapper/libdm-deptree.c \
device_mapper/libdm-file.c \
device_mapper/libdm-report.c \
device_mapper/libdm-string.c \
device_mapper/libdm-targets.c \
device_mapper/libdm-timestamp.c \
device_mapper/mm/pool.c \
device_mapper/regex/matcher.c \
device_mapper/regex/parse_rx.c \
device_mapper/regex/ttree.c \
2018-12-14 23:50:09 +03:00
device_mapper/vdo/status.c \
2022-10-26 15:33:09 +03:00
device_mapper/vdo/vdo_reader.c \
2018-12-14 23:50:09 +03:00
device_mapper/vdo/vdo_target.c
2018-05-14 14:16:43 +03:00
2018-12-15 03:55:11 +03:00
DEVICE_MAPPER_TARGET = device_mapper/libdevice-mapper.a
2018-11-29 23:47:11 +03:00
DEVICE_MAPPER_DEPENDS = $( DEVICE_MAPPER_SOURCE:%.c= %.d)
DEVICE_MAPPER_OBJECTS = $( DEVICE_MAPPER_SOURCE:%.c= %.o)
CLEAN_TARGETS += $( DEVICE_MAPPER_DEPENDS) $( DEVICE_MAPPER_OBJECTS) \
$( DEVICE_MAPPER_SOURCE:%.c= %.gcda) \
2018-12-15 03:55:11 +03:00
$( DEVICE_MAPPER_SOURCE:%.c= %.gcno) \
$( DEVICE_MAPPER_TARGET)
2018-05-14 14:16:43 +03:00
2018-06-29 14:38:18 +03:00
#$(DEVICE_MAPPER_DEPENDS): INCLUDES+=$(VDO_INCLUDES)
#$(DEVICE_MAPPER_OBJECTS): INCLUDES+=$(VDO_INCLUDES)
2018-12-15 03:55:11 +03:00
$(DEVICE_MAPPER_TARGET) : $( DEVICE_MAPPER_OBJECTS )
2024-04-08 14:10:16 +03:00
$( SHOW) " [AR] $@ "
2018-05-14 14:16:43 +03:00
$( Q) $( RM) $@
$( Q) $( AR) rsv $@ $( DEVICE_MAPPER_OBJECTS) > /dev/null
2018-12-15 03:55:11 +03:00
i f e q ( "$(DEPENDS)" , "yes" )
- i n c l u d e $( DEVICE_MAPPER_DEPENDS )
e n d i f