Results 1 to 1 of 1
Hi,,
i have run successfully a code using a makefile.
i need also to active the debug for this code. So where do i put the "-g" option? is it ...
- 07-14-2008 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 29
debug script in make file ?
Hi,,
i have run successfully a code using a makefile.
i need also to active the debug for this code. So where do i put the "-g" option? is it in each line that has gcc command ? i also want to activate the profiling using gpprof command hence i have to add the "-pg" option, where should it be as well?
here is my makefile:
thanksCode:all: mycode main.o: main.c main.h gcc -c main.c task.o: task.c task.h gcc -c task.c mycode: main.o task.o gcc -o mycode main.o task.o clean: rm *.o mycode


Reply With Quote