akaros/tests/openmp/Makefrag
<<
>>
Prefs
   1OPENMP_TESTS_DIR = $(TESTS_DIR)/openmp
   2
   3OPENMP_TESTS_CFLAGS += $(CFLAGS_TESTS) \
   4                     -fopenmp \
   5                     -I$(XCC_TARGET_ROOT)/sys-include/openmp
   6
   7ALL_OPENMP_TEST_FILES := $(wildcard $(OPENMP_TESTS_DIR)/*.c)
   8
   9OPENMP_TESTS_LDLIBS := 
  10
  11OPENMP_TESTS_SRCS := $(ALL_OPENMP_TEST_FILES)
  12
  13OPENMP_TESTS_LDDEPENDS := $(OPENMP_TESTS_DIR)/%.c 
  14
  15TESTS_EXECS_C  += $(patsubst $(OPENMP_TESTS_DIR)/%.c, \
  16                      $(OBJDIR)/$(OPENMP_TESTS_DIR)/%, \
  17                      $(OPENMP_TESTS_SRCS))
  18
  19STATIC := $(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
  29