1 L2E_DIRS := $(shell cd $(srcdir) && find * -type d)
2 L2E_SRCS := $(shell cd $(srcdir)&& find * -type f -name '*.cpp')
3 L2E_DEPS = $(L2E_SRCS:%.cpp=%.d)
4 L2E_OBJS = $(L2E_SRCS:%.cpp=%.o)
7 L2E_FLAGS = $(sort $(strip \
11 L2E_LIBS = $(sort $(strip \
18 $(L2E_OBJS): %.o: $(srcdir)/%.cpp
21 $(VERBOSE) $(CXX) -c -o "$@" -MMD -MP -MF"$*.d" -MT"$@)" "$<" \
22 $(L2E_FLAGS) $(CPPFLAGS) $(CXXFLAGS)
24 $(L2E_EXES): $(L2E_OBJS)
27 $(VERBOSE) $(CXX) -o "$@" $^ \
28 $(L2E_FLAGS) $(L2E_LIBS) $(LDFLAGS)
33 $(VERBOSE) -$(RM) $(L2E_DEPS)
34 $(VERBOSE) -$(RM) $(L2E_OBJS)
35 $(VERBOSE) -$(RM) $(L2E_EXES)
36 $(VERBOSE) -$(RMDIR) $(L2E_DIRS)
41 .PHONY: l2e-all l2e-clean
43 -include $(BUILD)l2e-local.mk