diff options
Diffstat (limited to 'pa7_lru/Makefile')
-rw-r--r-- | pa7_lru/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pa7_lru/Makefile b/pa7_lru/Makefile new file mode 100644 index 0000000..fd76806 --- /dev/null +++ b/pa7_lru/Makefile @@ -0,0 +1,40 @@ +# CSCI3753 - FA23 PA7 + +CC = gcc +CFLAGS = -c -g -Wall -Wextra +LFLAGS = -g -Wall -Wextra + +SUBMITFILES = pager-lru.c + +.PHONY: all clean + +all: test-basic test-lru + +test-basic: simulator.o pager-basic.o programs.o + $(CC) $(LFLAGS) $^ -o $@ + +test-lru: simulator.o pager-lru.o programs.o + $(CC) $(LFLAGS) $^ -o $@ + +simulator.o: simulator.c programs.o simulator.h + $(CC) $(CFLAGS) $< + +programs.o: programs.c simulator.h + $(CC) $(CFLAGS) $< + +pager-basic.o: pager-basic.c simulator.h programs.c + $(CC) $(CFLAGS) $< + +pager-lru.o: pager-lru.c simulator.h programs.c + $(CC) $(CFLAGS) $< + +clean: + rm -f test-basic test-lru test-predict test-api + rm -f *.o + rm -f *~ + rm -f *.csv + rm -f *.pdf + +submit: + @read -r -p "please enter your identikey username: " username; \ + tar -cvf PA7-$$username.txt $(SUBMITFILES) |