projects
/
satune.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add file to read in constraints from Dirk
[satune.git]
/
src
/
Test
/
Makefile
diff --git
a/src/Test/Makefile
b/src/Test/Makefile
index b3b7cb35abbc2c3584389d0ae6bffc20b55c8577..50399a008cafbaefdd4e26c89c058a3ea586c3d2 100644
(file)
--- a/
src/Test/Makefile
+++ b/
src/Test/Makefile
@@
-1,22
+1,28
@@
BASE := ..
BASE := ..
-OBJECTS := $(patsubst %.c, ../bin/%, $(wildcard *.c))
-
+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))))
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 -I$(BASE)/Tuner
-all: $(OBJECTS)
../bin/run.sh
+all: $(OBJECTS)
$(COBJECTS) ../bin/run.sh $(PYOBJECT)
-include $(DEPS)
-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/%: %.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::
clean::
- rm -f $(OBJECTS) $(DEPS) ../bin/run.sh
+ rm -f $(OBJECTS) $(
COBJECTS) $(
DEPS) ../bin/run.sh