# Makefile # Authors : gautier.picard CC=gcc -rdynamic CPPFLAGS = -MMD CFLAGS = -Wall -Wextra -std=c99 -g LDFLAGS = LDLIBS = -lSDL_image -lm SRC = main.c NN/NN_Tools/layer.c NN/NN_Tools/matrix.c NN/network.c NN/network_xor.c NN/NN_Tools/activation.c NN/NN_Tools/error.c NN/NN_Tools/load.c OBJ = ${SRC:.c=.o} DEP = ${SRC:.c=.d} # add list of dependency files all: main main: ${OBJ} .PHONY: clean clean: ${RM} ${OBJ} # remove object files ${RM} ${DEP} # remove dependency files ${RM} main # remove main program -include ${DEP} # include dependency files # END