-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 684 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (30 loc) · 684 Bytes
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
CPP=g++
INCLUDE=-I ./include
LIBS=
CPPFLAGS=-g -O3 -w $(INCLUDE) $(LIBS)
PROGRAM=Kavosh
SRC=src/main.cpp\
src/graph.cpp\
src/ZeroOneTree.cpp\
src/randomGenerator.cpp
OBJ=$(SRC:.cpp=.o)
NAUTY = nauty/nauty.o\
nauty/naugraph.o\
nauty/nautil.o
all : $(PROGRAM)
%.o: src/%.cpp include/%.h
$(CPP) $(CPPFLAGS) $< -o $@
nauty/%.o: nauty/%.c
$(CPP) $(CPPFLAGS) -c $< -o $@
$(PROGRAM): $(OBJ) $(NAUTY)
$(CPP) $(CPPFLAGS) -o $@ $(OBJ) $(NAUTY)
clean:
@echo "Removing objects..."
rm -f $(PROGRAM) *.log src/*.o *~ core
rm -f nauty/*.o
rm -f result/*
install: $(PROGRAM)
cp $(PROGRAM) ../bin
ar:
make clean
tar -czvf ../$(PROGRAM)"(`date`)".tar.gz *