diff options
Diffstat (limited to 'pa6_threaded_resolver/Makefile')
-rw-r--r-- | pa6_threaded_resolver/Makefile | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/pa6_threaded_resolver/Makefile b/pa6_threaded_resolver/Makefile index 80efc14..8c951e9 100644 --- a/pa6_threaded_resolver/Makefile +++ b/pa6_threaded_resolver/Makefile @@ -1,37 +1,14 @@ -# Makefile v1 for CSCI3753-F23 PA6 +OBJS = array.o util.o multi-lookup.o +CFLAGS = -Wall -Wextra -g -# 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 +all: $(OBJS) + cc $(CFLAGS) -o multi-lookup $(OBJS) -# Do not modify anything after this line -CC = gcc -CFLAGS = -Wextra -Wall -g -std=gnu99 -INCLUDES = -LFLAGS = -LIBS = -lpthread +clean: + rm *.o *.log multi-lookup -MAIN = multi-lookup +test: + ./multi-lookup 10 10 requester.log resolver.log ../common/hostname_data/*.txt -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 +array.o: array.h +util.o: util.h |