diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..32c468e --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CC = gcc +DEBUG = -g +CFLAGS = -Wall -c $(DEBUG) +LFLAGS = -Wall $(DEBUG) + +main.out: main + ./main | tee main.out + +main: main.o get_student_id.o + $(CC) $(LFLAGS) main.o get_student_id.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 main.out diff --git a/README b/README index 74ddb0e..7887d90 100644 --- a/README +++ b/README @@ -1,3 +1,3 @@ Contributors: Toby Dylan Hocking -ADD YOUR NAME HERE \ No newline at end of file +Preston Robert Lee diff --git a/get_student_id.c b/get_student_id.c index 8ffa600..38bd5bd 100644 --- a/get_student_id.c +++ b/get_student_id.c @@ -1,3 +1,3 @@ int get_student_id(void){ - return 3331212; + return 006047723; } diff --git a/main.out b/main.out new file mode 100644 index 0000000..6b2c154 --- /dev/null +++ b/main.out @@ -0,0 +1 @@ +Student ID: 1593299