view louvain/Makefile @ 0:1d1b9e1b2e2f draft

Uploaded
author petr-novak
date Thu, 19 Dec 2019 10:24:45 -0500
parents
children
line wrap: on
line source

#!/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)