annotate louvain/Makefile @ 0:1d1b9e1b2e2f draft

Uploaded
author petr-novak
date Thu, 19 Dec 2019 10:24:45 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
1 #!/bin/bash
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
2
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
3 CC=g++
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
4 CFLAGS= -ansi -O5 -Wall
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
5 LDFLAGS= -ansi -lm -Wall
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
6 EXEC=louvain_community louvain_convert louvain_hierarchy
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
7 OBJ1= graph_binary.o community.o
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
8 OBJ2= graph.o
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
9
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
10 all: $(EXEC)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
11
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
12 louvain_community : $(OBJ1) main_community.o
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
13 $(CC) -o $@ $^ $(LDFLAGS)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
14
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
15 louvain_convert : $(OBJ2) main_convert.o
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
16 $(CC) -o $@ $^ $(LDFLAGS)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
17
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
18 louvain_hierarchy : main_hierarchy.o
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
19 $(CC) -o $@ $^ $(LDFLAGS)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
20
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
21 ##########################################
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
22 # Generic rules
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
23 ##########################################
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
24
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
25 %.o: %.cpp %.h
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
26 $(CC) -o $@ -c $< $(CFLAGS)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
27
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
28 %.o: %.cpp
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
29 $(CC) -o $@ -c $< $(CFLAGS)
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
30
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
31 clean:
1d1b9e1b2e2f Uploaded
petr-novak
parents:
diff changeset
32 rm -f *.o *~ $(EXEC)