This makefile script will get applications compiled in such a way that you can use the gdb debugger with them. #gdb #linux #bash
CC = gcc
CCFLAGS = -Wall -ggdb3
VPATH = /usr/include/
OBJS = file1.o file2.o file3.o
%.o: %.c
${CC} ${CCFLAGS} -c $< hwcheck: ${OBJS} ${CC} ${CCFLAGS} ${OBJS} -o myapp clean: rm -f myapp *.o