Add file to read in constraints from Dirk
[satune.git] / src / Test / Makefile
index 5ec798914b18aa446f9922a6fc31727dd57e3516..50399a008cafbaefdd4e26c89c058a3ea586c3d2 100644 (file)
@@ -1,22 +1,28 @@
 BASE := ..
 
 OBJECTS := $(patsubst %.cc, ../bin/%, $(wildcard *.cc))
-
+COBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
+PYOBJECT := $(patsubst %.py, ../bin/%, $(wildcard *.py))
 include $(BASE)/common.mk
 
 DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
 
 CPPFLAGS += -I$(BASE) -I$(BASE)/AST -I$(BASE)/Collections -I$(BASE)/Backend -I$(BASE)/Tuner
 
-all: $(OBJECTS) ../bin/run.sh
+all: $(OBJECTS) $(COBJECTS) ../bin/run.sh $(PYOBJECT)
 
 -include $(DEPS)
 
 ../bin/%: %.cc
        $(CXX) -MMD -MF $(@D)/.$(@F).d -o ../bin/$@ $< $(CPPFLAGS) -L$(BASE)/bin/ -l_cons_comp
 
+../bin/%: %.c
+       $(CC) -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
+../bin/%: %.py
+       cp $< ../bin/$<
 
 clean::
-       rm -f $(OBJECTS) $(DEPS) ../bin/run.sh
+       rm -f $(OBJECTS) $(COBJECTS) $(DEPS) ../bin/run.sh