Initialize the Project
++ 249Utilities ++ Main Program ++ Utilities for File IO and Console ++ Makefile template for the project
This commit is contained in:
parent
ef3115db5f
commit
29bc5d4dee
12 changed files with 2872 additions and 1 deletions
20
Makefile
Normal file
20
Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
CC = gcc -Wall
|
||||
SOURCES = main.c get_student_id.c
|
||||
OBJECTS = main.o get_student_id.o
|
||||
|
||||
all: main.out
|
||||
|
||||
main.out: main
|
||||
./main | tee main.out
|
||||
|
||||
main: $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -o main
|
||||
|
||||
main.o: main.c
|
||||
$(CC) -c main.c -o main.o
|
||||
|
||||
get_student_id.o: get_student_id.c
|
||||
$(CC) -c get_student_id.c -o get_student_id.o
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) main main.out
|
||||
Loading…
Add table
Add a link
Reference in a new issue