mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 13:56:28 +08:00
15 lines
No EOL
209 B
Makefile
15 lines
No EOL
209 B
Makefile
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}
|