projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model/threads: add documentation comments
[model-checker.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index c363876dfd3fef30a0f2a3ecef3832949854c023..ea73d93d7901e7b78d2a81b8aab1c54924eb68f9 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,20
+17,8
@@
endif
TESTS_DIR = test
TESTS_DIR = test
-program_H_SRCS := $(wildcard *.h) $(wildcard include/*.h)
-program_C_SRCS := $(wildcard *.c) $(wildcard *.cc)
-DEPS = make.deps
-
all: $(LIB_SO) tests
all: $(LIB_SO) tests
-$(DEPS): build_deps := 1
-$(DEPS): $(program_C_SRCS) $(program_H_SRCS)
- $(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS)
-
-ifeq ($(build_deps),1)
-include $(DEPS)
-endif
-
debug: CPPFLAGS += -DCONFIG_DEBUG
debug: all
debug: CPPFLAGS += -DCONFIG_DEBUG
debug: all
@@
-44,12
+32,17
@@
$(LIB_SO): $(OBJECTS)
malloc.o: malloc.c
$(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES -DHAVE_MMAP=0 $(CPPFLAGS) -Wno-unused-variable
malloc.o: malloc.c
$(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES -DHAVE_MMAP=0 $(CPPFLAGS) -Wno-unused-variable
-%.o: %.cc $(DEPS)
- $(CXX) -fPIC -c $< $(CPPFLAGS)
+%.o: %.cc
+ $(CXX) -MMD -MF .$@.d -fPIC -c $< $(CPPFLAGS)
+
+%.pdf: %.dot
+ dot -Tpdf $< -o $@
+
+-include $(OBJECTS:%=.%.d)
PHONY += clean
clean:
PHONY += clean
clean:
- rm -f *.o *.so
+ rm -f *.o *.so
.*.d *.pdf *.dot
$(MAKE) -C $(TESTS_DIR) clean
PHONY += mrclean
$(MAKE) -C $(TESTS_DIR) clean
PHONY += mrclean
@@
-64,16
+57,19
@@
PHONY += tests
tests: $(LIB_SO)
$(MAKE) -C $(TESTS_DIR)
tests: $(LIB_SO)
$(MAKE) -C $(TESTS_DIR)
-BENCH
MARKS
:= benchmarks
+BENCH
_DIR
:= benchmarks
PHONY += benchmarks
benchmarks: $(LIB_SO)
PHONY += benchmarks
benchmarks: $(LIB_SO)
- @if ! test -d $(BENCH
MARKS
); then \
- echo "Directory $(BENCH
MARKS
) does not exist" && \
+ @if ! test -d $(BENCH
_DIR
); then \
+ echo "Directory $(BENCH
_DIR
) does not exist" && \
echo "Please clone the benchmarks repository" && \
echo && \
exit 1; \
fi
echo "Please clone the benchmarks repository" && \
echo && \
exit 1; \
fi
- $(MAKE) -C $(BENCHMARKS)
+ $(MAKE) -C $(BENCH_DIR)
+
+PHONY += pdfs
+pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot))
.PHONY: $(PHONY)
.PHONY: $(PHONY)