diff options
Diffstat (limited to 'pa8_predict/Makefile')
-rw-r--r-- | pa8_predict/Makefile | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/pa8_predict/Makefile b/pa8_predict/Makefile index 8629c67..093b75d 100644 --- a/pa8_predict/Makefile +++ b/pa8_predict/Makefile @@ -1,33 +1,9 @@ -# CSCI3753 - FA23 PA8 +OBJS = simulator.o programs.o pager-predict.o +VPATH = ../common +CFLAGS = -Wall -Wextra -g -CC = gcc -CFLAGS = -c -g -Wall -Wextra -LFLAGS = -g -Wall -Wextra - -VPATH += ../common - -SUBMITFILES = pager-predict.c - -.PHONY: all clean - -all: test-predict - -test-predict: simulator.o pager-predict.o programs.o - $(CC) $(LFLAGS) $^ -o $@ - -simulator.o: simulator.c programs.o simulator.h - $(CC) $(CFLAGS) $< - -pager-predict.o: pager-predict.c simulator.h - $(CC) $(CFLAGS) $< +all: $(OBJS) + cc $(CFLAGS) -o test-predict $(OBJS) clean: - rm -f test-basic test-predict test-predict test-api - rm -f simulator.o pager-predict.o - rm -f *~ - rm -f *.csv - rm -f *.pdf - -submit: - @read -r -p "please enter your identikey username: " username; \ - tar -cvf PA8-$$username.txt $(SUBMITFILES) + rm pager-predict.o simulator.o test-predict |