aboutsummaryrefslogtreecommitdiff
path: root/pa6_threaded_resolver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pa6_threaded_resolver/Makefile')
-rw-r--r--pa6_threaded_resolver/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/pa6_threaded_resolver/Makefile b/pa6_threaded_resolver/Makefile
new file mode 100644
index 0000000..80efc14
--- /dev/null
+++ b/pa6_threaded_resolver/Makefile
@@ -0,0 +1,37 @@
+# Makefile v1 for CSCI3753-F23 PA6
+
+# Add any additional source files you'd like to submit by appending
+# .c filenames to the MSRCS line and .h filenames to the MHDRS line
+MSRCS = multi-lookup.c array.c
+MHDRS = multi-lookup.h array.h
+
+# Do not modify anything after this line
+CC = gcc
+CFLAGS = -Wextra -Wall -g -std=gnu99
+INCLUDES =
+LFLAGS =
+LIBS = -lpthread
+
+MAIN = multi-lookup
+
+SRCS = $(MSRCS) util.c
+HDRS = $(MHDRS) util.h
+
+OBJS = $(SRCS:.c=.o)
+
+$(MAIN): $(OBJS)
+ $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
+
+%.o: %.c $(HDRS)
+ $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
+
+.PHONY: clean
+clean:
+ $(RM) *.o *~ $(MAIN)
+
+SUBMITFILES = $(MSRCS) $(MHDRS) Makefile README
+submit:
+ @read -r -p "Enter your identikey username: " username; \
+ echo; echo Bundling the following files for submission; \
+ tar --transform "s|^|PA6-$$username/|" -cvf PA6-$$username.txt $(SUBMITFILES); \
+ echo; echo Please upload the file PA6-$$username.txt to Canvas to complete your submission; echo