1f08c3bdfSopenharmony_ci# 2f08c3bdfSopenharmony_ci# commands/ade/ldd/datafiles testcases Makefile. 3f08c3bdfSopenharmony_ci# 4f08c3bdfSopenharmony_ci# Copyright (C) 2014, Linux Test Project. 5f08c3bdfSopenharmony_ci# 6f08c3bdfSopenharmony_ci# This program is free software; you can redistribute it and/or modify 7f08c3bdfSopenharmony_ci# it under the terms of the GNU General Public License as published by 8f08c3bdfSopenharmony_ci# the Free Software Foundation; either version 2 of the License, or 9f08c3bdfSopenharmony_ci# (at your option) any later version. 10f08c3bdfSopenharmony_ci# 11f08c3bdfSopenharmony_ci# This program is distributed in the hope that it will be useful, 12f08c3bdfSopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of 13f08c3bdfSopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14f08c3bdfSopenharmony_ci# GNU General Public License for more details. 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_citop_srcdir ?= ../../../.. 17f08c3bdfSopenharmony_ci 18f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/env_pre.mk 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_ciCPPFLAGS += -fpic 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ciINSTALL_TARGETS := ldd*.so lddfile.out 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_ciLDD_C_FILES := $(sort $(wildcard $(abs_srcdir)/lddfile*.c)) 25f08c3bdfSopenharmony_ciLDD_SO_FILES := $(patsubst $(abs_srcdir)/%.c,%.obj.so,$(LDD_C_FILES)) 26f08c3bdfSopenharmony_ciMAKE_TARGETS := lddfile.out 27f08c3bdfSopenharmony_ciCLEAN_TARGETS += *.obj $(LDD_SO_FILES) 28f08c3bdfSopenharmony_ci 29f08c3bdfSopenharmony_ci%.obj.so: %.o 30f08c3bdfSopenharmony_ci $(CC) $(CFLAGS) -shared -o $@ $^ 31f08c3bdfSopenharmony_ci 32f08c3bdfSopenharmony_cilddfile.out: main.o $(LDD_SO_FILES) 33f08c3bdfSopenharmony_ci $(CC) $(CFLAGS) -O -o $@ $? 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_ciINSTALL_DIR := testcases/data/ldd01 36f08c3bdfSopenharmony_ci 37f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/generic_leaf_target.mk 38