gcc and linking files with CFLAGS
===

I am trying to run program from the Learn C Hard Way book

I need to pass the library filename 'build/liblcthw.a' as the last parameter. 

For eg :

Doesnt Work on Ubuntu :

gcc -g -O2 -Wall -Wextra -Isrc -rdynamic -DNDEBUG build/liblcthw.a tests/list_tests.c -o tests/list_tests

Works on Ubuntu :

gcc -g -O2 -Wall -Wextra -Isrc -rdynamic -DNDEBUG tests/list_tests.c -o tests/list_tests build/liblcthw.a

How do I handle this in Makefile ? CFLAGS will only add it before the source filename and it doesnt work. How do I force CFALGS to add the library filename at the end of the command ?