diff --git a/codes/c/Makefile b/codes/c/Makefile new file mode 100644 index 000000000..6d360feeb --- /dev/null +++ b/codes/c/Makefile @@ -0,0 +1,15 @@ +CXXFLAGS = # -Wall -Werror +LDFLAGS = + +src = $(wildcard ./*/*.c) +target = $(patsubst %.c, %, ${src}) + +.PHONY: all clean + +%:%.cpp + $(CXX) ${CXXFLAGS} ${LDFLAGS} $^ -o $@ + +all: ${target} + +clean: + rm -f ${target} \ No newline at end of file