xcode - "Line by line" debug with custom Makefile -
i working xcode , c project developed in linux. thing has custom makefiles had create new target specifying external build system, , when run project outputs bin file, no matter if there breakpoints. program run within xcode can debug (line line).
the "main" makefile is:
all: $(make) -c src mkdir -p bin mv src/program bin/program debug: $(make) -c src debug mkdir -p bin mv src/program bin/program clean: $(make) -c src clean rm -f bin/program
and in src folder makefile:
src=[whatever] obj=$(src:.c=.o) cc=gcc rm=rm -f cflags=[whatever] ldflags=[whatever] %.o : %.c $(cc) $(cflags) -c $< : program program : $(obj) $(cc) $(obj) -o program $(ldflags) debug : cflags += -ddebug -ggdb debug : program clean : $(rm) *.o program
(the [whatever]'s added me). question is: should (modify makefiles,...) can debug program breakpoints , line line xcode?
Comments
Post a Comment