2020-10-12 12:14:04 +02:00
|
|
|
_LIBMK := $(lastword $(wordlist 1,$(shell expr $(words $(MAKEFILE_LIST)) - 1),$(MAKEFILE_LIST)))
|
|
|
|
_LIBNAME := $(notdir $(patsubst %/,%,$(dir $(abspath $(_LIBMK)))))
|
|
|
|
ALL := $(OUT)lib$(_LIBNAME).a
|
2020-09-18 11:49:50 +02:00
|
|
|
LIB_RULES := $(lastword $(MAKEFILE_LIST))
|
|
|
|
include $(dir $(LIB_RULES))build.rules
|
2009-12-05 21:03:46 +01:00
|
|
|
|
2019-02-09 20:07:24 +01:00
|
|
|
ifdef TEST_FUZZ
|
|
|
|
CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
|
|
|
CFLAGS += -DTEST_FUZZ
|
|
|
|
endif
|
|
|
|
|
2019-06-07 22:57:02 +02:00
|
|
|
CFLAGS += $(FUZZ_CFLAGS)
|
2009-12-05 21:03:46 +01:00
|
|
|
CFLAGS += -I.. -I../utils
|
|
|
|
|
2020-10-12 12:14:05 +02:00
|
|
|
_OBJS_VAR := LIB_OBJS
|
|
|
|
include ../objs.mk
|
|
|
|
|
|
|
|
$(ALL): $(LIB_OBJS)
|
2020-10-12 12:14:04 +02:00
|
|
|
@$(E) " AR $(notdir $@)"
|
|
|
|
$(Q)$(AR) crT $@ $?
|
|
|
|
|
2020-10-14 21:57:04 +02:00
|
|
|
install-default:
|
2020-10-12 12:14:05 +02:00
|
|
|
@echo Nothing to be made.
|
|
|
|
|
2020-10-14 21:57:04 +02:00
|
|
|
%: %-default
|
|
|
|
@true
|
|
|
|
|
2020-10-15 11:42:21 +02:00
|
|
|
clean: common-clean
|
2020-09-18 11:49:50 +02:00
|
|
|
$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)
|