1_LIBMK := $(lastword $(wordlist 1,$(shell expr $(words $(MAKEFILE_LIST)) - 1),$(MAKEFILE_LIST)))
2_LIBNAME := $(notdir $(patsubst %/,%,$(dir $(abspath $(_LIBMK)))))
3ALL := $(OUT)lib$(_LIBNAME).a
4LIB_RULES := $(lastword $(MAKEFILE_LIST))
5include $(dir $(LIB_RULES))build.rules
6
7ifdef TEST_FUZZ
8CFLAGS += -DCONFIG_NO_RANDOM_POOL
9CFLAGS += -DTEST_FUZZ
10endif
11
12CFLAGS += $(FUZZ_CFLAGS)
13CFLAGS += -I.. -I../utils
14
15_OBJS_VAR := LIB_OBJS
16include ../objs.mk
17
18$(ALL): $(LIB_OBJS)
19	@$(E) "  AR  $(notdir $@)"
20	$(Q)$(AR) crT $@ $?
21
22install-default:
23	@echo Nothing to be made.
24
25%: %-default
26	@true
27
28clean: common-clean
29	$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)
30