feat(code/c): add c code Makefile compile method

pull/289/head
Gonglja 2 years ago
parent 2a1b479002
commit cbbb7d34b2

@ -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}
Loading…
Cancel
Save