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