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 | |
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
-rw-r--r-- | src/Makefile.osx | 20 | ||||
-rw-r--r-- | tools/Makefile.osx | 6 |
2 files changed, 19 insertions, 7 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) diff --git a/tools/Makefile.osx b/tools/Makefile.osx index 580a44c..a45e4ff 100644 --- a/tools/Makefile.osx +++ b/tools/Makefile.osx @@ -1,5 +1,3 @@ -CC = gcc -g -Wall -CPP='g++' GLUTINC = -I/usr/include -I. GLUTLIB = -L. -lglut -lGLU -lGL -lX11 -lXmu @@ -11,6 +9,10 @@ OMP_TARGET= ivyprobe_omp ivythroughput_omp OMPLIB = -lgomp -lpthread OMPCC = gcc-mp-4.3 OMPCPP = g++-mp-4.3 +CC = gcc -g -Wall +CPP='g++' +#CC = $(OMPCC) +#CPP= $(OMPCPP) PCRELIB = `pcre-config --libs` PCREINCL = `pcre-config --cflags` |