projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Makefile: add dependency information
[model-checker.git]
/
test
/
Makefile
diff --git
a/test/Makefile
b/test/Makefile
index 5e5e76c6c2b546e197ec3d32b220c6e20a32d857..9d7acb0894b7db264e5b4bd4e90a61cff6be0a27 100644
(file)
--- a/
test/Makefile
+++ b/
test/Makefile
@@
-8,15
+8,19
@@
include $(BASE)/common.mk
DIR := litmus
include $(DIR)/Makefile
DIR := litmus
include $(DIR)/Makefile
+DEPS := $(join $(addsuffix ., $(dir $(OBJECTS))), $(addsuffix .d, $(notdir $(OBJECTS))))
+
CPPFLAGS += -I$(BASE) -I$(BASE)/include
all: $(OBJECTS)
CPPFLAGS += -I$(BASE) -I$(BASE)/include
all: $(OBJECTS)
+-include $(DEPS)
+
%.o: %.c
%.o: %.c
- $(CC) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
+ $(CC) -
MMD -MF $(@D)/.$(@F).d -
o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
%.o: %.cc
%.o: %.cc
- $(CXX) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
+ $(CXX) -
MMD -MF $(@D)/.$(@F).d -
o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME)
clean::
clean::
- rm -f $(OBJECTS)
+ rm -f $(OBJECTS)
$(DEPS)