-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 799 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
# ------------------------------------------------------------
# Makefile for Synchronization Exercise
# by Josh Lucas
# Note: time was included to verify my program timer correct
# ------------------------------------------------------------
synchro: synchro.c
gcc -Wall -pthread -o synchro synchro.c
seq: seq.c
gcc -Wall -pthread -o seq seq.c
runSimulation:
time ./synchro test.dat 200 20
runSimulation2:
time ./synchro test2.dat 200 20
runSimulationNasty:
time ./synchro nasty.dat 200 20
runSimulationNasty2:
time ./synchro nasty2.dat 200 20
runSeq:
time ./seq test.dat 200 5
runSeqNasty:
time ./seq nasty.dat 200 20
runSeqNasty2:
time ./seq nasty2.dat 200 20
runSimulationVal:
valgrind --fair-sched=yes --leak-check=full ./synchro test.dat 200 20
clean:
rm *~ out.* *.o