Add rebuild to Makefile
Remove generated files
Reorganize cflags in makefile