Mercurial > repos > petr-novak > repeatrxplorer
diff louvain/Makefile @ 0:1d1b9e1b2e2f draft
Uploaded
author | petr-novak |
---|---|
date | Thu, 19 Dec 2019 10:24:45 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/louvain/Makefile Thu Dec 19 10:24:45 2019 -0500 @@ -0,0 +1,32 @@ +#!/bin/bash + +CC=g++ +CFLAGS= -ansi -O5 -Wall +LDFLAGS= -ansi -lm -Wall +EXEC=louvain_community louvain_convert louvain_hierarchy +OBJ1= graph_binary.o community.o +OBJ2= graph.o + +all: $(EXEC) + +louvain_community : $(OBJ1) main_community.o + $(CC) -o $@ $^ $(LDFLAGS) + +louvain_convert : $(OBJ2) main_convert.o + $(CC) -o $@ $^ $(LDFLAGS) + +louvain_hierarchy : main_hierarchy.o + $(CC) -o $@ $^ $(LDFLAGS) + +########################################## +# Generic rules +########################################## + +%.o: %.cpp %.h + $(CC) -o $@ -c $< $(CFLAGS) + +%.o: %.cpp + $(CC) -o $@ -c $< $(CFLAGS) + +clean: + rm -f *.o *~ $(EXEC)