blob: fab91ca7da8752cdf979cc1f8444704e248af4f0 [file] [log] [blame]
default: all
SRC = $(wildcard *.cpp)
EXECS = $(patsubst %.cpp,%,$(SRC))
.PHONY: all clean
all: $(EXECS)
clean:
rm -rf $(EXECS)
rm -f $(SRC:.cpp=.o)
rm -f $(SRC:.cpp=.d)
$(EXECS) : % : %.o
$(CXX) $(CXXLDFLAGS) $(CXXLIBS) -o $@ $^
-include $(SRC:.cpp=.d)
include ../GNUmakefile.common