Add Makefile / Add .gitignore / Fix warnings

Add Makefile
Add .gitignore
Fix warning: implicit declaration of function ‘lseek’
Fix warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument has type ‘uint32_t’