Commit 0e13d7cf authored by incardon's avatar incardon

Fixing example compilation

parent baa5309a
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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment