Properly declare dependencies in the Makefile
This commit is contained in:
parent
d74c7ca999
commit
93f71a9cfe
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -11,3 +11,6 @@ libtrycatch.a: trycatch.o
|
|||
|
||||
example: example.o libtrycatch.a
|
||||
${CC} -L. -ltrycatch -o $@ $<
|
||||
|
||||
trycatch.o: trycatch.c trycatch.h
|
||||
example.o: example.c trycatch.h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue