-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Aaron Clauset
# Makefile Oct2003
# feel free to hack this to pieces
#### local macros
# remove without fussing about it
RM = rm -f
# compiler name and flags
CCC = g++
CCFLAGS = -fomit-frame-pointer -funroll-loops -fforce-addr -fexpensive-optimizations
# loader flags
LDFLAGS =
### local program information
EXEC=FastCommunityMH
SOURCES= fastcommunity_mh.cc
### intermediate objects
OBJECTS = $(SOURCES: .cc=.o)
### includes
INCLUDES =
### headers
HEADERS = maxheap.h vektor.h
INSTALL_DIR = /usr/local/bin
### targets, dependencies and actions
$(EXEC): $(OBJECTS) Makefile
$(LINK.cc) $(CCFLAGS) -o $(EXEC) $(OBJECTS)
### sort out dependencies
depend:
makedepend $(INCLUDES) $(HEADERS) $(SOURCES)
### housekeeping
install:
cp $(EXEC) $(INSTALL_DIR)
clean:
$(RM) *.o *~
cleanall: clean
$(RM) $(EXEC)