############################################################################ # # Makefile -- Makefile for clustering system in vishnu package # # Copyright (C) 2004 Imperial College, London # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ########################################################################### prefix=@prefix@ exec_prefix=@exec_prefix@ libdir = @libdir@ CC = @CC@ CFLAGS = @CFLAGS@ -g -Wall DEFS = @DEFS@ LIBS = @LIBS@ LDFLAGS = @LDFLAGS@ -shared -rdynamic -Wait -Wall JNI_INCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(JNI_INCLUDES) $(CFLAGS) LINK = $(CC) $(LDFLAGS) -o OBJS = clustering.o \ create_trisim.o \ hierarchical.o \ iterative.o \ linkfuncs.o \ mysammon.o \ simfuncs.o \ .SUFFIXES: .SUFFIXES: .c .o .c.o: $(COMPILE) $< all: getKeywords procresults getKeywords: $(OBJS) getKeywords.o $(LINK) libExtractor.so -lm $(OBJS) getKeywords.o #getKeywords.o: getKeywords.c # $(COMPILE) getKeywords.c procresults: $(OBJS) procresults.o $(LINK) libCluster.so -lm $(OBJS) procresults.o #procresults.o: procresults.c # gcc -g -Wall -c -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux procresults.c clean: rm -f *.o libCluster.so libExtractor.so distclean: clean rm -f Makefile install: cp libCluster.so libExtractor.so $(libdir)/;