-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
85 lines (56 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
CC = gcc
FLAGS = -g
THREADS = -lpthread -lm
OBJ1 = DataParse.o RadixHashJoin.o main.o Results.o Index.o Tables.o Query.o Actions.o Jobs.o JobQueue.o JobScheduler.o JoinEnumeration.o
HEAD1 = DataParse.h Results.h Globals.h Index.h Tables.h Query.h Actions.h Jobs.h JobQueue.h JobScheduler.h JoinEnumeration.h
OUT1 = Caramel
OBJ2 = DataGenerator.o
HEAD2 = DataGenerator.h Globals.h
OUT2 = DataGenerator
BASIC_PATH = CUnit/Sources/Basic
FRAM_PATH = CUnit/Sources/Framework
OBJ3 = UnitTests.o DataParse.o Index.o Results.o RadixHashJoin.o Tables.o Query.o Actions.o Jobs.o JobQueue.o JoinEnumeration.o JobScheduler.o $(BASIC_PATH)/Basic.o $(FRAM_PATH)/CUError.o $(FRAM_PATH)/MyMem.o $(FRAM_PATH)/TestDB.o $(FRAM_PATH)/TestRun.o $(FRAM_PATH)/Util.o
SOURCE3 = UnitTests.c DataParse.c Index.c Results.c RadixHashJoin.c Tables.c Query.c Actions.c Jobs.c JobQueue.c JoinEnumeration.c JobScheduler.c $(BASIC_PATH)/Basic.c $(FRAM_PATH)/CUError.c $(FRAM_PATH)/MyMem.c $(FRAM_PATH)/TestDB.c $(FRAM_PATH)/TestRun.c $(FRAM_PATH)/Util.c
HEAD3 = DataParse.h Index.h Results.h Tables.h Query.h Actions.h
OUT3 = UnitTests
TXT = DataRelationR.txt DataRelationS.txt
all: $(OUT1) $(OUT2) $(OUT3)
Caramel: $(OBJ1) $(HEAD1)
$(CC) $(OBJ1) -o $(OUT1) $(THREADS)
DataGenerator: $(OBJ2) $(HEAD2)
$(CC) $(OBJ2) -o $(OUT2)
UnitTests: $(OBJ3) $(HEAD3)
$(CC) $(OBJ3) -o $(OUT3) $(THREADS)
DataParse.o: DataParse.c DataParse.h Globals.h
$(CC) -c DataParse.c $(FLAGS)
RadixHashJoin.o: RadixHashJoin.c Results.h Globals.h
$(CC) -c RadixHashJoin.c $(FLAGS)
main.o: main.c DataParse.h Globals.h Tables.h Results.h Query.h Actions.h
$(CC) -c main.c $(FLAGS)
Results.o: Results.c Results.h Globals.h
$(CC) -c Results.c $(FLAGS)
Index.o: Index.c Index.h Results.h Globals.h
$(CC) -c Index.c $(FLAGS)
Tables.o: Tables.c Tables.h Globals.h
$(CC) -c Tables.c $(FLAGS)
Query.o: Query.c Query.h
$(CC) -c Query.c $(FLAGS)
Actions.o: Actions.c Actions.h
$(CC) -c Actions.c $(FLAGS)
JobQueue.o: JobQueue.c JobQueue.h Globals.h
$(CC) -c JobQueue.c $(FLAGS) $(THREADS)
Jobs.o: Jobs.c Jobs.h JobQueue.h Globals.h Index.h
$(CC) -c Jobs.c $(FLAGS) $(THREADS)
JobScheduler.o: JobScheduler.c JobScheduler.h Globals.h
$(CC) -c JobScheduler.c $(FLAGS) $(THREADS)
JoinEnumeration.o: JoinEnumeration.c JoinEnumeration.h Tables.h
$(CC) -c JoinEnumeration.c $(FLAGS) -lm
DataGenerator.o: DataGenerator.c DataGenerator.h Globals.h
$(CC) -c DataGenerator.c $(FLAGS)
UnitTests.o: UnitTests.c
$(CC) -c UnitTests.c $(FLAGS) $(THREADS) -lm
clean:
rm -f $(OUT1) $(OUT2) $(OUT3)
rm -f $(OBJ1)
rm -f $(OBJ2)
rm -f $(OBJ3)