diff options
author | bustico | 2008-04-09 15:28:53 +0000 |
---|---|---|
committer | bustico | 2008-04-09 15:28:53 +0000 |
commit | 3152da9d5a99a95ce75fee6c378a3b0711e28bb3 (patch) | |
tree | 0bf5c131d7210467371043f6356dde37986acf77 /src/Makefile.osx | |
parent | c5f385388ee7c73a991cf1c31c17521df88b5022 (diff) | |
download | ivy-c-3152da9d5a99a95ce75fee6c378a3b0711e28bb3.zip ivy-c-3152da9d5a99a95ce75fee6c378a3b0711e28bb3.tar.gz ivy-c-3152da9d5a99a95ce75fee6c378a3b0711e28bb3.tar.bz2 ivy-c-3152da9d5a99a95ce75fee6c378a3b0711e28bb3.tar.xz |
fix macos file after failed attempt to use openmp on macos with gcc 4.3
Diffstat (limited to 'src/Makefile.osx')
-rw-r--r-- | src/Makefile.osx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/Makefile.osx b/src/Makefile.osx index c95cf90..35e65de 100644 --- a/src/Makefile.osx +++ b/src/Makefile.osx @@ -25,9 +25,6 @@ REGEXP= -DUSE_PCRE_REGEX -DPCRE_OPT=$(PCRE_OPT) OBJ = ivyloop.o timer.o ivysocket.o ivy.o ivybuffer.o ivyfifo.o ivybind.o intervalRegexp.o OMPOBJ = ivyloop.o timer.o ivysocket_omp.o ivy_omp.o ivybuffer.o ivyfifo.o ivybind.o intervalRegexp.o -CC=gcc -LIBTOOL=ar q # linux and solaris -CFLAGS = -g -Wall $(FPIC) TOOLS_DIR = ../tools # you should first install gcc version >= 4.3 @@ -35,9 +32,21 @@ TOOLS_DIR = ../tools # using macport greatly simplify gcc install : port install gcc43 OMPCC = gcc-mp-4.3 OMPCPP = g++-mp-4.3 -OMPCFLAGS = $(CFLAGS) -fopenmp -DOPENMP=1 +OMPLIBTOOL =gar q +OMPCFLAGS = -g -Wall $(FPIC) -fopenmp -DOPENMP=1 OMPLIB = -lgomp -lpthread + +LIBTOOL=ar q # linux and solaris +CFLAGS = -g -Wall $(FPIC) + +CC=gcc +CPP=g++ +#CC = $(OMPCC) +#CPP = $(OMPCPP) +#LIBTOOL = $(OMPLIBTOOL) +#CFLAGS = $(OMPCFLAGS) + # ------------------------------------------------------------------------------------------ .c.o: @@ -47,8 +56,9 @@ OMPLIB = -lgomp -lpthread $(CPP) $(CFLAGS) -c $*.cpp -all: static-libs shared-libs tools +all: static-libs tools # shared-libs libomp: libivy_omp.a + omp: libomp @(cd $(TOOLS_DIR) && $(MAKE) -f Makefile.osx omp) |