Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CS305_FINAL
Contributors:
Tayyaba Shaheen
ADD YOUR NAME HERE
Tayyaba Shaheen,
Shurie Kamewada
2 changes: 1 addition & 1 deletion get_student_id.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
int get_student_id(void){
return 3331212;
return 5885882;
}