aboutsummaryrefslogtreecommitdiffstats
path: root/P2/solutionexe/Makefile
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-26 08:43:30 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-26 08:43:30 -0500
commitcd43f361676b151a90607fdeb76724b694288ef9 (patch)
tree1bc6543b96eb4fa8ced332bce4ac78ca1bd9225c /P2/solutionexe/Makefile
parentAdd error checking (diff)
downloadcsci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar.gz
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar.bz2
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar.lz
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar.xz
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.tar.zst
csci4061-cd43f361676b151a90607fdeb76724b694288ef9.zip
Add new template
Diffstat (limited to '')
-rw-r--r--P2/solutionexe/Makefile57
1 files changed, 5 insertions, 52 deletions
diff --git a/P2/solutionexe/Makefile b/P2/solutionexe/Makefile
index 231a15e..4a969ac 100644
--- a/P2/solutionexe/Makefile
+++ b/P2/solutionexe/Makefile
@@ -1,57 +1,10 @@
-CC=gcc
-CFLAGS=-g
+.PHONY: run
-SRCDIR=src
-INCLDIR=include
-LIBDIR=lib
-
-mapreduce: $(SRCDIR)/mapreduce.c $(LIBDIR)/utils.o 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
-
-$(LIBDIR)/utils.o: $(LIBDIR)/utils.c
- $(CC) $(CFLAGS) -I$(INCLDIR) -c $(LIBDIR)/utils.c -o $(LIBDIR)/utils.o
-
-.PHONY: run clean t1 t2 t3
-
-#500KB
-t1:
-# make -i clean
-# make
+run:
+ chmod +x mapreduce
+ chmod +x mapper
+ chmod +x reducer
./mapreduce 5 2 test/T1/F1.txt
-#44KB
-t2:
-# make -i clean
-# make
- ./mapreduce 5 2 test/T2/F2.txt
-
-#0KB
-t3:
-# make -i clean
-# make
- ./mapreduce 5 2 test/T3/F3.txt
-
-# m >= r
-
-# m=1 r=1 (min case)
-t4:
-# make -i clean
-# make
- ./mapreduce 1 1 test/T1/F1.txt
-
-# m=32 r=26 (max case)
-t5:
-# make -i clean
-# make
- ./mapreduce 32 26 test/T1/F1.txt
-
-
clean:
- rm lib/utils.o mapreduce mapper reducer
rm -rf output \ No newline at end of file