# Copyright (C) 1997-2000 Gidon Moont # Biomolecular Modelling Laboratory # Imperial Cancer Research Fund # 44 Lincoln's Inn Fields # London WC2A 3PX # +44 (0)20 7269 3565 # http://www.bmm.icnet.uk/ ############# # This line you will definitely have to edit FFTW_DIR = /home/parisien/ftdock/fftw-2.1.5 ############# # You may need/want to edit some of these # # Hint: For the CC_FLAGS have a look at what the fftw build used SHELL = /bin/sh #CC = cc CC = /home/ketan/darshan-install/bin/mpicc CC_FLAGS = -ansi -O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing -static CC_LINKERS = -lm STRIP = strip SECURITY = chmod 555 #################################################### # You should not be editing anything below here CC_FLAGS_FULL = -I$(FFTW_DIR)/fftw -I$(FFTW_DIR)/rfftw $(CC_FLAGS) FFTW_LINKERS = -L$(FFTW_DIR)/fftw/.libs -L$(FFTW_DIR)/rfftw/.libs -lrfftw -lfftw ############# .SUFFIXES: .c .o .c.o: $(CC) $(CC_FLAGS_FULL) -c $< ############# LIBRARY_OBJECTS = manipulate_structures.o angles.o coordinates.o electrostatics.o grid.o qsort_scores.o PROGRAMS = modmerge modftdock build build1 randomspin all: $(PROGRAMS) ############# modftdock: modftdock.o $(LIBRARY_OBJECTS) structures.h $(CC) $(CC_FLAGS_FULL) -static -o $@ modftdock.o $(LIBRARY_OBJECTS) $(FFTW_LINKERS) $(CC_LINKERS) $(STRIP) $@ $(SECURITY) $@ ############# modmerge: modmerge.o $(LIBRARY_OBJECTS) structures.h $(CC) $(CC_FLAGS) -o $@ modmerge.o $(LIBRARY_OBJECTS) $(CC_LINKERS) $(STRIP) $@ $(SECURITY) $@ ############# build: build.o $(LIBRARY_OBJECTS) structures.h $(CC) $(CC_FLAGS) -o $@ build.o $(LIBRARY_OBJECTS) $(CC_LINKERS) $(STRIP) $@ $(SECURITY) $@ ############# build1: build1.o $(LIBRARY_OBJECTS) structures.h $(CC) $(CC_FLAGS) -o $@ build1.o $(LIBRARY_OBJECTS) $(CC_LINKERS) $(STRIP) $@ $(SECURITY) $@ ############# randomspin: randomspin.o $(LIBRARY_OBJECTS) structures.h $(CC) $(CC_FLAGS) -o $@ randomspin.o $(LIBRARY_OBJECTS) $(CC_LINKERS) $(STRIP) $@ $(SECURITY) $@ ############# clean: rm -f *.o core $(PROGRAMS) ############# # dependencies modftdock.o: structures.h modmerge.o: structures.h build.o: structures.h build1.o: structures.h randomspin.o: structures.h angles.o: structures.h coordinates.o: structures.h electrostatics.o: structures.h grid.o: structures.h manipulate_structures.o: structures.h qsort_scores.o: structures.h