From 0e13d7cfeb9aa5cf8f12ad62791c7fad90d253df Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Thu, 27 Oct 2016 14:16:01 +0200 Subject: [PATCH] Fixing example compilation --- example/Plot/2_PSE_convergence/Makefile | 21 +++++++++++-------- .../Vector/5_molecular_dynamic_sym/Makefile | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/example/Plot/2_PSE_convergence/Makefile b/example/Plot/2_PSE_convergence/Makefile index b526f48e..6aa9e2fa 100644 --- a/example/Plot/2_PSE_convergence/Makefile +++ b/example/Plot/2_PSE_convergence/Makefile @@ -1,23 +1,26 @@ include ../../example.mk +#### this example work only if you have quadmath activated ### +#### (only if -lquadmath work) uncomment to reactivate + CC=mpic++ LDIR = -OBJ = main.o +#OBJ = main.o -%.o: %.cpp - $(CC) -O3 -g3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH) +#%.o: %.cpp +# $(CC) -O3 -g3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH) -conv_p: $(OBJ) - $(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS) +#conv_p: $(OBJ) +# $(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS) -lquadmath -all: conv_p +#all: conv_p -run: all - source $$HOME/openfpm_vars; ./conv_p +#run: all +# source $$HOME/openfpm_vars; ./conv_p -.PHONY: clean all run +#.PHONY: clean all run clean: rm -f *.o *~ core conv_p diff --git a/example/Vector/5_molecular_dynamic_sym/Makefile b/example/Vector/5_molecular_dynamic_sym/Makefile index 734dbb09..56f83af9 100644 --- a/example/Vector/5_molecular_dynamic_sym/Makefile +++ b/example/Vector/5_molecular_dynamic_sym/Makefile @@ -17,7 +17,7 @@ md_sym: $(OBJ_DORD) run: md_sym source $$HOME/openfpm_vars; mpirun -np 3 ./md_sym -.PHONY: clean all run md_sym +.PHONY: clean all run clean: rm -f *.o *~ core md_sym -- GitLab