aboutsummaryrefslogtreecommitdiff
path: root/pa8_predict/Makefile
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-11-14 22:55:52 -0700
committerJack Sangdahl <[email protected]>2024-11-14 22:55:52 -0700
commitb6d0f307fb61884c60a7aa0bc46f0a88c6ca4fab (patch)
treea449caf78c54e71a5f5961cbac37a02a8e40d346 /pa8_predict/Makefile
parentb84375f891085d385c2a19a1e8e1bd21171ef91b (diff)
downloadcsci3753-master.tar.gz
csci3753-master.zip
pa8: improvementsHEADmaster
Diffstat (limited to 'pa8_predict/Makefile')
-rw-r--r--pa8_predict/Makefile36
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