blob: e9762c8e29e53d7700f3b770339f2a74d876fc89 (
plain) (
blame)
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
|
CC=gcc
CFLAGS=-g
SRCDIR=src
INCLDIR=include
LIBDIR=lib
mapreduce: $(LIBDIR)/utils.o $(SRCDIR)/mapreduce.c mapper reducer
$(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/mapreduce.c -o mapreduce
mapper: $(SRCDIR)/mapper.c $(LIBDIR)/utils.o
$(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/mapper.c -o mapper
reducer: $(SRCDIR)/reducer.c $(LIBDIR)/utils.o
$(CC) $(CFLAGS) -I$(INCLDIR) $(LIBDIR)/utils.o $(SRCDIR)/reducer.c -o reducer
.PHONY: run clean t1
#500KB
t1:
# make -i clean
# make
./mapreduce 5 2 test/T1/F1.txt
clean:
rm mapreduce mapper reducer
rm -rf output
|