File: lib.rules

package info (click to toggle)
wpa 2%3A2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 21,852 kB
  • sloc: ansic: 431,772; cpp: 5,200; python: 4,151; makefile: 3,836; sh: 1,460; php: 966; xml: 54; perl: 48
file content (29 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
_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: common-clean
	$(Q)rm -f *~ *.o *.d *.gcno *.gcda *.gcov $(ALL)