-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 1.55 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
39
40
41
42
43
44
45
# Options utiles a la compilation
CFLAGS = -g -Wall -Wextra
SRCS = associativeCacheSimulation.c directCacheSimulation.c testAssociativeCache.c testDirectCache.c associativeCache.c directCache.c bits.c
# Par defaut, on fait tout
all: testDirectCache directCacheSimulation testAssociativeCache associativeCacheSimulation
# Edition de liens des divers programmes
testDirectCache: testDirectCache.o directCache.o bits.o
@echo "Building $@"
cc $(CFLAGS) -o testDirectCache testDirectCache.o directCache.o bits.o
directCacheSimulation: directCacheSimulation.o directCache.o bits.o
@echo "Building $@"
cc $(CFLAGS) -o directCacheSimulation directCacheSimulation.o directCache.o bits.o
testAssociativeCache: testAssociativeCache.o associativeCache.o directCache.o bits.o
@echo "Building $@"
cc $(CFLAGS) -o testAssociativeCache testAssociativeCache.o associativeCache.o directCache.o bits.o
associativeCacheSimulation: associativeCacheSimulation.o associativeCache.o directCache.o bits.o
@echo "Building $@"
cc $(CFLAGS) -o associativeCacheSimulation associativeCacheSimulation.o associativeCache.o directCache.o bits.o
.c.o :
@echo "Building $@"
cc $(CCFLAGS) -o $@ -c $<
# Pour indiquer les dependances non implicites
testDirectCache.o: directCache.h
directCacheSimulation.o: directCache.h
directCache.o: bits.h
associativeCache.o: directCache.h
associativeCacheSimulation.o: associativeCache.h
testAssociativeCache.o: associativeCache.h
# Utile pour y voir clair
clean:
rm -f *.o testDirectCache directCacheSimulation testAssociativeCache associativeCacheSimulation