-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
33 lines (22 loc) · 842 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
FLAGS=-W -Wall -pedantic
all: main clean
main: semaphore.o main.o allocCPU.o randomProcessus.o readfile.o utils.o rrAlgorithm.o
gcc -o program main.o semaphore.o readfile.o utils.o allocCPU.o rrAlgorithm.o randomProcessus.o $(FLAGS) -lpthread
semaphore.o: semaphore.c
gcc -o semaphore.o -c semaphore.c $(FLAGS)
allocCPU.o: allocCPU.c header.h
gcc -o allocCPU.o -c allocCPU.c $(FLAGS)
randomProcessus.o: randomProcessus.c header.h
gcc -o randomProcessus.o -c randomProcessus.c $(FLAGS)
readfile.o: readfile.c header.h
gcc -o readfile.o -c readfile.c $(FLAGS)
utils.o: utils.c header.h
gcc -o utils.o -c utils.c $(FLAGS)
rrAlgorithm.o: rrAlgorithm.c header.h
gcc -o rrAlgorithm.o -c rrAlgorithm.c $(FLAGS)
main.o: main.c semaphore.h header.h
gcc -o main.o -c main.c $(FLAGS)
clean:
rm -rf *.o
mrproper: clean
rm -rf projet