projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: embed the trace_analyses in the class
[model-checker.git]
/
test
/
Makefile
diff --git
a/test/Makefile
b/test/Makefile
index f7a01be0a344285f11e62af3de537699790ab47a..f1ea5b295d110f81090bf2807b2aeb25c2b9f8bc 100644
(file)
--- a/
test/Makefile
+++ b/
test/Makefile
@@
-1,15
+1,24
@@
-include ../common.mk
+BASE = ..
-CPPFLAGS += -I.. -I../include
-TESTS=userprog
+include $(BASE)/common.mk
+
+CPPFLAGS += -I$(BASE) -I$(BASE)/include
SRCS = $(wildcard *.c)
SRCS = $(wildcard *.c)
-OBJS = $(patsubst %.c,%.o,$(SRCS))
+CPSRCS = $(wildcard *.cc)
+OBJS = $(patsubst %.c,%.o,$(SRCS)) $(patsubst %.cc,%.o,$(CPSRCS))
+
+all: $(OBJS) litmus-tests
-all: $(OBJS)
+litmus-tests::
+ $(MAKE) -C litmus
%.o: %.c
%.o: %.c
- $(CC) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME)
+ $(CC) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
+
+%.o: %.cc
+ $(CXX) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
clean::
clean::
- rm -f *.o $(TESTS)
+ rm -f *.o
+ $(MAKE) -C litmus clean