Makefile
Makefile from repl.itunknown
c_cpp
2 years ago
456 B
13
Indexable
all: main
CXX = clang++
override CXXFLAGS += -g -Wno-everything
SRCS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.cpp' -print | sed -e 's/ /\\ /g')
HEADERS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.h' -print)
main: $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(SRCS) -o "$@"
main-debug: $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) -O0 $(SRCS) -o "$@"
clean:
rm -f main main-debugEditor is loading...