Compute Must Values Automatically
[satune.git] / src / Test / Makefile
index b3b7cb35abbc2c3584389d0ae6bffc20b55c8577..0f1bc39a80de5ebd6b4f31b2314633c18250ca3b 100644 (file)
@@ -1,19 +1,19 @@
 BASE := ..
 
-OBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
+OBJECTS := $(patsubst %.cc, ../bin/%, $(wildcard *.cc))
 
 include $(BASE)/common.mk
 
 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
 
-CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections
+CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections -I$(BASE)/Backend
 
 all: $(OBJECTS) ../bin/run.sh
 
 -include $(DEPS)
 
-../bin/%: %.c
-       $(CC) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
+../bin/%: %.cc
+       $(CXX) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
 
 ../bin/run.sh: run.sh
        cp run.sh ../bin/run.sh