hello-algo/codes/c/Makefile

15 lines
209 B
Makefile
Raw Normal View History

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}