Better makefile, macs_map (compilable but not tested)