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