Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #********************Makefile********************#
- ifndef PVFMM_DIR
- PVFMM_DIR=./..
- endif
- -include $(PVFMM_DIR)/MakeVariables
- ifndef CXX_PVFMM
- $(error Cannot find file: MakeVariables)
- endif
- # FC=$(FC_PVFMM) # TODO: for now, FC must be provided by user
- # CC=$(CC_PVFMM) # TODO: for now, CC must be provided by user
- CXX=$(CXX_PVFMM)
- CXXFLAGS=$(CXXFLAGS_PVFMM)
- LDLIBS=$(LDLIBS_PVFMM)
- RM = rm -f
- MKDIRS = mkdir -p
- BINDIR = ./bin
- SRCDIR = ./src
- OBJDIR = ./obj
- INCDIR = ./include
- TARGET_BIN = \
- $(BINDIR)/example1 \
- $(BINDIR)/example2 \
- $(BINDIR)/example-sctl \
- $(BINDIR)/fmm_pts \
- $(BINDIR)/fmm_cheb
- all : $(TARGET_BIN)
- $(BINDIR)/%: $(SRCDIR)/%.f90
- -@$(MKDIRS) $(dir $@)
- $(PVFMM_DIR)/libtool --mode=link --tag=FC $(FC) $(CXXFLAGS) -I$(INCDIR) $^ $(LDLIBS) -o $@
- ...
- #********************New Makefile********************#
- ifndef PVFMM_DIR
- PVFMM_DIR=./..
- endif
- -include $(PVFMM_DIR)/MakeVariables
- ifndef CXX_PVFMM
- $(error Cannot find file: MakeVariables)
- endif
- FC_PVMM = mpif90
- FC = mpif90
- FC=$(FC_PVFMM) # TODO: for now, FC must be provided by user
- CC=$(CC_PVFMM) # TODO: for now, CC must be provided by user
- CXX=$(CXX_PVFMM)
- CXXFLAGS=$(CXXFLAGS_PVFMM)
- LDLIBS=$(LDLIBS_PVFMM)
- RM = rm -f
- MKDIRS = mkdir -p
- BINDIR = ./bin
- SRCDIR = ./src
- OBJDIR = ./obj
- INCDIR = ./include
- all : $(project_final)
- project_final: $(project)
- $(PVFMM_DIR)/libtool --mode=link --tag=FC mpif90 $(CXXFLAGS) -I$(INCDIR) $^ $(LDLIBS) -o $@
- project: example-f.o
- cd ./src && $(MAKE)
- example-f.o: $(SRCDIR)/example-f.f90
- $(PVFMM_DIR)/libtool --mode=link --tag=FC mpif90 $(CXXFLAGS) -I$(INCDIR) $^ $(LDLIBS) -c $@
- ...
- #********************Error message********************#
- cd ./examples && make;
- make[1]: Entering directory '/home/bidesh/Coding/FMM/pvfmm-1.3.0/examples'
- make[1]: Nothing to be done for 'all'.
- make[1]: Leaving directory '/home/bidesh/Coding/FMM/pvfmm-1.3.0/examples'
Add Comment
Please, Sign In to add comment