3 OBJECTS := $(patsubst %.cc, ../bin/%, $(wildcard *.cc))
4 COBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
5 PYOBJECT := $(patsubst %.py, ../bin/%, $(wildcard *.py))
6 include $(BASE)/common.mk
8 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
10 CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections -I$(BASE)/Backend -I$(BASE)/Tuner
12 all: $(OBJECTS) $(COBJECTS) ../bin/run.sh $(PYOBJECT)
17 $(CXX) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
20 $(CC) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
23 cp run.sh ../bin/run.sh
28 rm -f $(OBJECTS) $(COBJECTS) $(DEPS) ../bin/run.sh