3 OBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
5 include $(BASE)/common.mk
7 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
9 CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections -I$(BASE)/Backend
11 all: $(OBJECTS) ../bin/run.sh
16 $(CC) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
19 cp run.sh ../bin/run.sh
22 rm -f $(OBJECTS) $(DEPS) ../bin/run.sh