#This is the directory on the server where Star-P is installed STARP=/usr/local/starp/2.6.0 #This the name of your Star-P extension package PACKAGE=sdk_function.so #These are the object files your extension package depends on OBJECTS=sdk_function.o #Implicit rule to compile .cc files to .o files CXXFLAGS+=-I$(STARP)/sdk/include -DPPINDEX64 -fPIC .cc.o: $(CXX) $(CXXFLAGS) -c $< $(PACKAGE) : $(OBJECTS) $(CXX) -shared -o $@ $^ -lmpi++ clean: $(RM) -rf $(PACKAGE) $(RM) -rf $(OBJECTS)