diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2861168 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC = cc + +all: main.out + +main.out: main + ./main | tee main.out + +main: main.o get_student_id.o + $(CC) -o main main.o get_student_id.o + +main.o: main.c + $(CC) -c main.c + +get_student_id.o: get_student_id.c + $(CC) -c get_student_id.c + +clean: + rm -f main main.out main.o get_student_id.o diff --git a/README b/README index 74ddb0e..8698863 100644 --- a/README +++ b/README @@ -1,3 +1,3 @@ Contributors: Toby Dylan Hocking -ADD YOUR NAME HERE \ No newline at end of file +Ethan Mock diff --git a/get_student_id.c b/get_student_id.c index 8ffa600..d0a5d86 100644 --- a/get_student_id.c +++ b/get_student_id.c @@ -1,3 +1,3 @@ int get_student_id(void){ - return 3331212; + return 6150945; } diff --git a/get_student_id.o b/get_student_id.o new file mode 100644 index 0000000..3891a8e Binary files /dev/null and b/get_student_id.o differ diff --git a/main b/main new file mode 100644 index 0000000..87337be Binary files /dev/null and b/main differ diff --git a/main.o b/main.o new file mode 100644 index 0000000..4215e8d Binary files /dev/null and b/main.o differ diff --git a/main.out b/main.out new file mode 100644 index 0000000..c88a81d --- /dev/null +++ b/main.out @@ -0,0 +1 @@ +Student ID: 6150945