1# SPDX-License-Identifier: GPL-2.0-or-later 2# Copyright (C) 2009, Cisco Systems Inc. 3# Ngie Cooper, July 2009 4 5top_srcdir ?= .. 6 7include $(top_srcdir)/include/mk/env_pre.mk 8 9CFLAGS += -I. -DLTPLIB 10 11ifneq ($(ANDROID),1) 12FILTER_OUT_DIRS += android_libpthread android_librt 13else 14FILTER_OUT_LIBSRCS += tlibio.c tst_safe_sysv_ipc.c 15endif 16 17INTERNAL_LIB := libltp.a 18 19pc_file := $(DESTDIR)/$(datarootdir)/pkgconfig/ltp.pc 20 21INSTALL_TARGETS := $(pc_file) 22 23$(pc_file): 24 test -d "$(@D)" || mkdir -p "$(@D)" 25 install -m $(INSTALL_MODE) "$(builddir)/$(@F)" "$@" 26 27include $(top_srcdir)/include/mk/lib.mk 28include $(top_srcdir)/include/mk/generic_trunk_target.mk 29