Files
s390-tools/libap/Makefile
Matthew Rosato 25a70ac5a8 libap: use util_lockfile and remove liblockfile dependency
Now that we have a utility library for file locking, remove all
calls to liblockfile functions from libap and remove all links to
the library from the current users of the libap liblockfile
implementation (ap_tools/ap-check and zdev).

Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/142
Suggested-by: Luca BRUNO <luca.bruno@coreos.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2022-11-09 16:09:19 +01:00

27 lines
374 B
Makefile

include ../common.mak
lib = libap.a
check-dep-json:
touch check-dep-json
ifneq (${HAVE_JSONC},0)
$(call check_dep, \
"libap", \
"json-c/json.h", \
"json-c-devel", \
"HAVE_JSONC=0")
ALL_CPPFLAGS += -DHAVE_JSONC
endif
all: $(lib)
objects = ap.o
$(lib): $(objects)
$(objects): check-dep-json
install: all
clean:
rm -f *.o check-dep-lock check-dep-json $(lib)