- Added seperate stage to _create_ the `main.o` and then only later link with the intent of making an executable.
- This is BETTER because it means we could treat everything in the same way (nevermind a `main` or library)
This commit is contained in:
Tristan B. Velloza Kildaire 2024-02-25 19:24:38 +02:00
parent 513fb920ce
commit e72e24f8f8
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,11 @@ library:
clean:
rm library.o
rm main.o
rm main
main:
gcc main.c library.o -o main
gcc -c main.c library.o -o main.o
exec:
gcc main.o library.o -o main