Plan 9 programs for controlling and checking the network: cs.c, csquery.c, netstat.c
[akaros.git] / tests / openmp / Makefrag
1 OPENMP_TESTS_DIR = $(TESTS_DIR)/openmp
2
3 OPENMP_TESTS_CFLAGS += $(CFLAGS_TESTS) \
4                      -fopenmp \
5                      -I$(XCC_TARGET_ROOT)/sys-include/openmp
6
7 ALL_OPENMP_TEST_FILES := $(wildcard $(OPENMP_TESTS_DIR)/*.c)
8
9 OPENMP_TESTS_LDLIBS := 
10
11 OPENMP_TESTS_SRCS := $(ALL_OPENMP_TEST_FILES)
12
13 OPENMP_TESTS_LDDEPENDS := $(OPENMP_TESTS_DIR)/%.c 
14
15 TESTS_EXECS_C  += $(patsubst $(OPENMP_TESTS_DIR)/%.c, \
16                       $(OBJDIR)/$(OPENMP_TESTS_DIR)/%, \
17                       $(OPENMP_TESTS_SRCS))
18
19 STATIC := $(findstring static,$(OPENMP_TESTS_CFLAGS))
20 $(OBJDIR)/$(OPENMP_TESTS_DIR)/%: $(OPENMP_TESTS_LDDEPENDS)
21         @echo + cc [OPENMP_TESTS] $<
22         @mkdir -p $(@D)
23         $(Q)$(CC) $(OPENMP_TESTS_CFLAGS) -o $@ $(OPENMP_TESTS_LDFLAGS) \
24                   $(OPENMP_TESTS_LDDIRS) $< $(OPENMP_TESTS_LDLIBS)
25         @if [ "$(STATIC)" != "static" ]; then \
26                 $(OBJDUMP) -S $@ > $@.asm; \
27                 $(NM) -n $@ > $@.sym; \
28         fi