-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (34 loc) · 2.1 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
include Makefile.in
DIRS = external-sort buffer testing schema slottedpages operator hashjoin
all: external-sort buffer-test testing schema schema-test slottedpages slottedpages-test slotted-test operator-test hashjoin-test
external-sort: force_look
cd external-sort; $(MAKE) $(MFLAGS)
buffer-test: buffer testing
$(LD) $(LDFLAGS) -o buffer-test ./buffer/BufferManager.o ./buffer/BufferFrame.o ./testing/buffertest.o
buffer: force_look
$(MAKE) $(MFLAGS) -C buffer
testing: force_look
$(MAKE) $(MFLAGS) -C testing
schema: force_look
$(MAKE) $(MFLAGS) -C schema
hashjoin: force_look
$(MAKE) $(MFLAGS) -C hashjoin
operator: force_look
$(MAKE) $(MFLAGS) -C operator
slottedpages: force_look
$(MAKE) $(MFLAGS) -C slottedpages
schema-test: schema buffer testing
$(LD) $(LDFLAGS) -o schema-test ./buffer/BufferManager.o ./buffer/BufferFrame.o ./schema/SchemaManager.o ./schema/Schema.o ./testing/schematest.o
slottedpages-test: schema buffer slottedpages testing
$(LD) $(LDFLAGS) -o slottedpages-test ./buffer/BufferManager.o ./buffer/BufferFrame.o ./schema/SchemaManager.o ./schema/Schema.o ./slottedpages/Record.o ./slottedpages/SPSegment.o ./testing/slottedpagestest.o
slotted-test: schema buffer slottedpages testing
$(LD) $(LDFLAGS) -o slotted-test ./buffer/BufferManager.o ./buffer/BufferFrame.o ./schema/SchemaManager.o ./schema/Schema.o ./slottedpages/Record.o ./slottedpages/SPSegment.o ./testing/slottedtest.o
operator-test: schema buffer slottedpages operator testing
$(LD) $(LDFLAGS) -o operator-test ./testing/operatortest.o ./operator/HashJoin.o ./operator/Selection.o ./operator/Projection.o ./operator/Print.o ./operator/Register.o ./operator/TableScan.o ./slottedpages/SPSegment.o ./slottedpages/Record.o ./schema/Schema.o ./schema/SchemaManager.o ./buffer/BufferManager.o ./buffer/BufferFrame.o
hashjoin-test: hashjoin testing
$(LD) $(LDFLAGS) -ltbb -o hashjoin-test ./hashjoin/hashjoin.o ./testing/hashjointest.o
clean:
$(RM) -rf hashjoin-test buffer-test schema-test slottedpages-test slotted-test operator-test 0 1 2 3 4 5 6 7 8 9
for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
force_look:
true