Add elfutils to the distribution
[akaros.git] / tests / vmm / Makefrag
1 VMM_TESTS_DIR = $(TESTS_DIR)/vmm
2
3 VMM_TESTS_CFLAGS += $(CFLAGS_TESTS)
4
5 ALL_VMM_TEST_FILES := $(wildcard $(VMM_TESTS_DIR)/*.c)
6
7 VMM_TESTS_LDLIBS := $(TESTS_LDLIBS)
8
9 VMM_TESTS_SRCS := $(ALL_VMM_TEST_FILES)
10
11 VMM_TESTS_LDDEPENDS := $(VMM_TESTS_DIR)/%.c 
12
13 TESTS_EXECS_C  += $(patsubst $(VMM_TESTS_DIR)/%.c, \
14                       $(OBJDIR)/$(VMM_TESTS_DIR)/%, \
15                       $(VMM_TESTS_SRCS))
16
17 STATIC := $(findstring static,$(VMM_TESTS_CFLAGS))
18 $(OBJDIR)/$(VMM_TESTS_DIR)/%: $(VMM_TESTS_LDDEPENDS)
19         @echo + cc [VMM_TESTS] $<
20         @mkdir -p $(@D)
21         $(Q)$(CC) $(VMM_TESTS_CFLAGS) -o $@ $< $(VMM_TESTS_LDLIBS)
22         @if [ "$(STATIC)" != "static" ]; then \
23                 $(OBJDUMP) -S $@ > $@.asm; \
24                 $(NM) -n $@ > $@.sym; \
25         fi