aboutsummaryrefslogtreecommitdiff
path: root/pa8_predict/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pa8_predict/Makefile')
-rw-r--r--pa8_predict/Makefile31
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)