]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libgomp/lib/build/Makefile
update
[l4.git] / l4 / pkg / libgomp / lib / build / Makefile
1 PKGDIR  ?= ../..
2 L4DIR   ?= $(PKGDIR)/../..
3
4 include $(L4DIR)/mk/Makeconf
5
6 ifneq ($(SYSTEM),)
7   # check whether used gcc has the omp.h file available
8   OMP_H_PATH := $(shell $(CC) -print-file-name=include/omp.h)
9
10   ifeq ($(strip $(OMP_H_PATH)),include/omp.h)
11     $(info \e[32m $(CC) does not have omp.h header file available, skipping. \e[0m)
12     PC_FILENAME =
13   else
14    TARGET           = libgomp.a
15  endif
16 endif
17
18 PRIVATE_INCDIR = $(PKGDIR)/lib/contrib/gcc-4.3/libgomp \
19                  $(PKGDIR)/lib/contrib/gcc-4.3/libgomp/config/posix \
20                  $(PKGDIR)/lib/build \
21                  $(PKGDIR)/lib/build/ARCH-$(BUILD_ARCH)
22
23 vpath %.c $(PKGDIR)/lib/contrib/gcc-4.3/libgomp \
24           $(PKGDIR)/lib/contrib/gcc-4.3/libgomp/config/posix
25
26 SRC_C = affinity.c alloc.c bar.c barrier.c critical.c env.c error.c \
27         fortran.c iter.c lock.c loop.c mutex.c ordered.c parallel.c proc.c \
28         sections.c sem.c single.c team.c time.c work.c
29 REQUIRES_LIBS = libpthread
30
31 include $(L4DIR)/mk/lib.mk
32
33 CFLAGS := $(filter-out -Wextra,$(CFLAGS))