Fix makefile for gdb/lldb use.