Update makefile

- Add generic object variable
- Add generic object compilation
- Change patcher
- Remove static object compilation