3 OBJECTS := $(patsubst %.c, %.o, $(wildcard *.c))
4 OBJECTS += $(patsubst %.cc, %.o, $(wildcard *.cc))
6 include $(BASE)/common.mk
9 include $(DIR)/Makefile
11 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
13 CPPFLAGS += -I$(BASE) -I$(BASE)/include
20 $(CC) -MMD -MF $(@D)/.$(@F).d -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
23 $(CXX) -MMD -MF $(@D)/.$(@F).d -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
26 rm -f $(OBJECTS) $(DEPS)