Browse Source

Fix Makefile to support OpenMP on AIX for xlc (clang) with xlf.

tags/v0.3.27
Chip Kerchner 1 year ago
parent
commit
61c8e19f95
3 changed files with 16 additions and 0 deletions
  1. +3
    -0
      ctest/Makefile
  2. +3
    -0
      test/Makefile
  3. +10
    -0
      utest/Makefile

+ 3
- 0
ctest/Makefile View File

@@ -218,6 +218,9 @@ ifeq ($(F_COMPILER), IBM)
ifeq ($(C_COMPILER), GCC)
CEXTRALIB += -lgomp
endif
ifeq ($(C_COMPILER), CLANG)
CEXTRALIB += -lomp
endif
endif
endif



+ 3
- 0
test/Makefile View File

@@ -276,6 +276,9 @@ ifeq ($(F_COMPILER), IBM)
ifeq ($(C_COMPILER), GCC)
CEXTRALIB += -lgomp
endif
ifeq ($(C_COMPILER), CLANG)
CEXTRALIB += -lomp
endif
endif
endif



+ 10
- 0
utest/Makefile View File

@@ -45,8 +45,18 @@ endif

all : run_test

ifeq ($(OSNAME), AIX)
ifeq ($(USE_OPENMP), 1)
$(UTESTBIN): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB)
else
$(UTESTBIN): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
endif
else
$(UTESTBIN): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
endif

run_test: $(UTESTBIN)
ifneq ($(CROSS), 1)


Loading…
Cancel
Save