Makefile 332 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
3
4
5
6
7
8
9
10
11
include ../../../example.mk

CC=mpic++

LDIR =

OBJ_VIC_PETSC = main_vic_petsc.o

%.o: %.cpp
	$(CC) -O3 -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)

incardon's avatar
incardon committed
12
all: vic_petsc
incardon's avatar
incardon committed
13
14

vic_petsc: $(OBJ_VIC_PETSC)
incardon's avatar
incardon committed
15
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS_SE2)
incardon's avatar
incardon committed
16
17
	
run: all
incardon's avatar
incardon committed
18
	mpirun -np 3 ./vic_petsc
incardon's avatar
incardon committed
19
20
21
22
23
24
	
.PHONY: clean all

clean:
	rm -f *.o *~ core vic