Rebar automatically downloads and compiles required wiringPi library. Makefile eases the whole process.