mirror of https://github.com/tbklang/tlang.git
Makefile
- 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:
parent
513fb920ce
commit
e72e24f8f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue