diff options
author | Matt Strapp <strap012@umn.edu> | 2020-09-24 07:19:30 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-09-24 07:19:30 -0500 |
commit | 2b7d79674d8a730543fd03cb9781758998126570 (patch) | |
tree | 5c3345e3336eda554a0793e8a8e8f5dd11ba141f /P1/Template/Makefile | |
parent | Initial commit (diff) | |
download | csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar.gz csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar.bz2 csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar.lz csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar.xz csci4061-2b7d79674d8a730543fd03cb9781758998126570.tar.zst csci4061-2b7d79674d8a730543fd03cb9781758998126570.zip |
Add project 1 files
Diffstat (limited to 'P1/Template/Makefile')
-rw-r--r-- | P1/Template/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/P1/Template/Makefile b/P1/Template/Makefile new file mode 100644 index 0000000..4134c5f --- /dev/null +++ b/P1/Template/Makefile @@ -0,0 +1,27 @@ +CC=gcc +CFLAGS=-g + +SRCDIR=src +INCLDIR=include +LIBDIR=lib + +mapreduce: $(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 + +.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
\ No newline at end of file |