]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/examples/libs/libgomp/Makefile
Inital import
[l4.git] / l4 / pkg / examples / libs / libgomp / Makefile
1 PKGDIR          ?= ../..
2 L4DIR           ?= $(PKGDIR)/../..
3
4 DEPENDS_PKGS     = libgomp
5 include $(L4DIR)/mk/Makeconf
6
7 ifneq ($(SYSTEM),)
8   # check whether used gcc has the omp.h file available
9   OMP_H_PATH := $(shell $(CC) -print-file-name=include/omp.h)
10
11   $(info here1 $(OMP_H_PATH))
12   ifeq ($(strip $(OMP_H_PATH)),include/omp.h)
13     $(info \e[32m $(CC) does not have omp.h header file available, skipping.\e[0m)
14   else
15     TARGET        = $(if $(filter 4.2 4.3 4.4,$(GCCVERSION)),ex_omp)
16     REQUIRES_LIBS = libgomp libc_support_misc
17   endif
18 endif
19
20 SRC_C            = main.c
21 CFLAGS           = -fopenmp
22 L4_MULTITHREADED = y
23
24 include $(L4DIR)/mk/prog.mk