diff --git a/README.md b/README.md index aa90123..9a9046e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # CS305_FINAL Contributors: Tayyaba Shaheen -ADD YOUR NAME HERE +Chris McCorkle diff --git a/get_student_id.c b/get_student_id.c index 8ffa600..a523236 100644 --- a/get_student_id.c +++ b/get_student_id.c @@ -1,3 +1,3 @@ int get_student_id(void){ - return 3331212; + return 5910177; } diff --git a/main.out b/main.out new file mode 100644 index 0000000..d8df425 --- /dev/null +++ b/main.out @@ -0,0 +1 @@ +Student ID: 5910177 diff --git a/makefile b/makefile new file mode 100644 index 0000000..9d71b2e --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +CC = gcc +DEBUG = -g +CFLAGS = -Wall -std=c99 -pedantic -c $(DEBUG) +LFLAGS = -Wall -std=c99 -pedantic -lpthread $(DEBUG) + +main.out: main + ./main | tee main.out + +main: get_student_id.o main.o + $(CC) $(LFLAGS) get_student_id.o \ + main.o -o main + +main.o: main.c + $(CC) $(CFLAGS) main.c + + get_student_id.o: get_student_id.c + $(CC) $(CFLAGS) get_student_id.c + +clean: + \rm *.o main