CC = gcc CFLAGS = -Wall -g -pg PROGS = matrix_transpose test_strncat test_list SRCS = matrix_transpose.c mystrncat.c test_strncat.c test_list.c\ linked_list.c STRNCAT_OBJS = mystrncat.o test_strncat.o LIST_OBJS = linked_list.o test_list.o all: $(PROGS) matrix_tranpose: matrix_transpose.c $(CC) $(CFLAGS) -o matrix_transpose.c test_strncat: $(STRNCAT_OBJS) $(CC) $(CFLAGS) -o test_strncat $(STRNCAT_OBJS) test_list: $(LIST_OBJS) $(cc) $(CFLAGS) -o test_list $(LIST_OBJS) mystrncat.o: mystrncat.h mystrncat.c test_strncat.o: mystrncat.h test_strncat.c linked_list.o: linked_list.h linked_list.c test_list.o: linked_list.h test_list.c clean: rm -f $(PROGS) $(STRNCAT_OBJS)