diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89622a6 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# depends on main, command to run is ./main|tee main.out +main.out: main.c + ./main|tee main.out + +# depends on both .o files, command should use cc -o to compile and link executable progam called main +main: get_student_id.o main.o + gcc get_student_id.o main.o -o main + +# depends on main.c, command should use cc -c to compile but not link +main.o: main.c + gcc main.c -c main.o + +# depends on get_student_id.c, command should use cc -c to compile but not link +get_student_id.o: get_student_id.c + gcc get_student_id.c -c get_student_id.o diff --git a/README.md b/README.md index aa90123..762bfa8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # CS305_FINAL Contributors: -Tayyaba Shaheen -ADD YOUR NAME HERE +Tayyaba Shaheen, +Shurie Kamewada diff --git a/get_student_id.c b/get_student_id.c index 8ffa600..bc4e98a 100644 --- a/get_student_id.c +++ b/get_student_id.c @@ -1,3 +1,3 @@ int get_student_id(void){ - return 3331212; + return 5885882; }