You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
596 B
32 lines
596 B
2 years ago
|
##
|
||
|
## a basic makefile to build examples
|
||
|
##
|
||
|
|
||
|
BLD=../../Obj_autotools/
|
||
|
|
||
|
ZOLTAN_INCLUDE=-I. -I$(BLD)/src
|
||
|
|
||
|
FC=mpif90
|
||
|
|
||
|
FCFLAGS =$(ID_TYPE_FLAG)
|
||
|
|
||
|
EXAMPLE_NAMES= simpleRCB
|
||
|
|
||
|
all: $(EXAMPLE_NAMES)
|
||
|
|
||
|
mpi_h.mod:
|
||
|
$(FC) $(FCFLAGS) -c mpi_h.f
|
||
|
|
||
|
zoltanRCBex.mod: mpi_h.mod
|
||
|
$(FC) $(FCFLAGS) \
|
||
|
$(TPL_INCLUDE) $(ZOLTAN_INCLUDE) \
|
||
|
-c zoltanRCBmod.f90
|
||
|
|
||
|
simpleRCB: mpi_h.mod zoltanRCBex.mod
|
||
|
$(FC) $(FCFLAGS) $(TPL_LIB_DIR) \
|
||
|
$(TPL_INCLUDE) $(ZOLTAN_INCLUDE) \
|
||
|
-o $@ simpleRCB.f90 zoltanRCBmod.o mpi_h.o $(BLD)/src/libzoltan.a $(TPL_LIBS) -lm
|
||
|
|
||
|
clean:
|
||
|
@rm -rf $(EXAMPLE_NAMES) *.mod
|