]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/examples/libs/libgomp/Makefile
update
[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   ifeq ($(strip $(OMP_H_PATH)),include/omp.h)
12     $(info \e[32m $(CC) does not have omp.h header file available, skipping.\e[0m)
13   else
14     TARGET        = $(if $(filter 4.2 4.3 4.4,$(GCCVERSION)),ex_omp)
15     REQUIRES_LIBS = libgomp libc_support_misc
16   endif
17 endif
18
19 SRC_C            = main.c
20 CFLAGS           = -fopenmp
21
22 include $(L4DIR)/mk/prog.mk