Hi Cheng,
after a fast look into your example, I would say, that you forgot to add the C-files to SRC_C in the Makefile in clock/lib/src. The libclock.a that is build is only 83 bytes big and does not contain your functions.
Add the C-file.
Cheers, Martin