-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
39 lines (28 loc) · 1.31 KB
/
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
##############################################################
#Main compile for Fiduccia-Mattheyses
##############################################################
all: src/main.o src/dll_structure.o src/basic_objects.o src/populate_partitions.o src/data_input.o src/fiduccia_mattheyses.o src/genetic_algorithm.o
gcc -O3 -o src/GAmain.out src/main.o src/dll_structure.o src/basic_objects.o src/populate_partitions.o src/data_input.o src/fiduccia_mattheyses.o src/genetic_algorithm.o
rm src/*.o
run: all
src/GAmain.out
main: src/main.c include/main.h
gcc -c main.c include/main.h
dll_structure: src/dll_structure.c
gcc -c dll_structure.c
basic_objects: src/basic_objects.c
gcc -c basic_objects.c
populate_partitions: src/populate_partitions.c
gcc -c populate_partitions.c populate_partitions.h
data_input: src/data_input.c
gcc -c data_input.c
fiduccia_mattheyses: src/fiduccia_mattheyses.c fiduccia_mattheyses.h
gcc -c fiduccia_mattheyses.c fiduccia_mattheyses.h
genetic_algorithm: src/genetic_algorithm.c genetic_algorithm.h
gcc -c genetic_algorithm.c genetic_algorithm.h
##############################################################
#Extra options
##############################################################
#Check heap memory for leaks
valgrind: all
valgrind --leak-check=full --track-origins=yes src/main.out