diff options
author | Jack Sangdahl <[email protected]> | 2024-04-26 12:14:41 -0600 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2024-04-26 12:14:41 -0600 |
commit | a4f877ffdc6bc802490f2998f7e7b226be2c7bfa (patch) | |
tree | 36353dbda99d8de36b831592997dfd15eb4a5b6d /pa8_predict/Makefile | |
parent | 3c8bb65459ca0d8c5fac591977d92d074ab44d88 (diff) | |
download | csci3753-a4f877ffdc6bc802490f2998f7e7b226be2c7bfa.tar.gz csci3753-a4f877ffdc6bc802490f2998f7e7b226be2c7bfa.zip |
pa8
Diffstat (limited to 'pa8_predict/Makefile')
-rw-r--r-- | pa8_predict/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pa8_predict/Makefile b/pa8_predict/Makefile new file mode 100644 index 0000000..08024e8 --- /dev/null +++ b/pa8_predict/Makefile @@ -0,0 +1,31 @@ +# CSCI3753 - FA23 PA8 + +CC = gcc +CFLAGS = -c -g -Wall -Wextra +LFLAGS = -g -Wall -Wextra + +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) $< + +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) |