39748963d7
The install target at the beginning of src/eap_peer/Makefile was confusing make about the build rules for libeap_peer.a and overriding of the install target between src/eap_peer/Makefile and src/lib.rules was breaking installation of dynamic EAP peer *.so files. Fix this by lib.rules defining a default for the install target so that src/*/Makefile can override that and by moving the install target for eap_peer to the end of the Makefile. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
29 lines
642 B
Text
29 lines
642 B
Text
_LIBMK := $(lastword $(wordlist 1,$(shell expr $(words $(MAKEFILE_LIST)) - 1),$(MAKEFILE_LIST)))
|
|
_LIBNAME := $(notdir $(patsubst %/,%,$(dir $(abspath $(_LIBMK)))))
|
|
ALL := $(OUT)lib$(_LIBNAME).a
|
|
LIB_RULES := $(lastword $(MAKEFILE_LIST))
|
|
include $(dir $(LIB_RULES))build.rules
|
|
|
|
ifdef TEST_FUZZ
|
|
CFLAGS += -DCONFIG_NO_RANDOM_POOL
|
|
CFLAGS += -DTEST_FUZZ
|
|
endif
|
|
|
|
CFLAGS += $(FUZZ_CFLAGS)
|
|
CFLAGS += -I.. -I../utils
|
|
|
|
_OBJS_VAR := LIB_OBJS
|
|
include ../objs.mk
|
|
|
|
$(ALL): $(LIB_OBJS)
|
|
@$(E) " AR $(notdir $@)"
|
|
$(Q)$(AR) crT $@ $?
|
|
|
|
install-default:
|
|
@echo Nothing to be made.
|
|
|
|
%: %-default
|
|
@true
|
|
|
|
clean:
|
|
$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)
|