| 1 |
include ../Makefile.inc |
| 2 |
#CC_PLUS = /usr/local/bin/gcc |
| 3 |
#CC_PLUS = icc |
| 4 |
#LD = ld |
| 5 |
#FC = ifc |
| 6 |
INCLUDE = ../headers |
| 7 |
CP_OBJ = mpiBASS.o mpiSimulation.o |
| 8 |
#CFLAGS = -s -static -O3 |
| 9 |
#CFLAGS = -mp -tpp6 -O3 |
| 10 |
|
| 11 |
LIBDIR = ../lib |
| 12 |
|
| 13 |
|
| 14 |
GLOBAL_DEPENDS = $(INCLUDE)/mpiBASS.h |
| 15 |
|
| 16 |
all: $(LIBDIR)/libmdtools.a |
| 17 |
|
| 18 |
$(LIBDIR)/libmdtools.a: $(CP_OBJ) |
| 19 |
ar -crsv $@ $? |
| 20 |
|
| 21 |
|
| 22 |
mpiBASS.o: $(GLOBAL_DEPENDS) mpiBASS.c |
| 23 |
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiBASS.c |
| 24 |
|
| 25 |
mpiSimulation.o: $(INCLUDE)/mpiSimulation.hpp mpiSimulation.cpp |
| 26 |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c mpiSimulation.cpp |
| 27 |
|
| 28 |
clean: |
| 29 |
rm *.o *~ |