X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile;h=ea73d93d7901e7b78d2a81b8aab1c54924eb68f9;hb=09c3eb5539455e82dcb357fbce82bf5974c3a37c;hp=9b20f4c8a65632c7d0f1c25e18417b38724c9ff2;hpb=dcf7f575967bec560d500cc4f52e35c21671525c;p=model-checker.git diff --git a/Makefile b/Makefile index 9b20f4c..ea73d93 100644 --- a/Makefile +++ b/Makefile @@ -17,20 +17,8 @@ endif 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 -$(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 @@ -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 -%.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: - rm -f *.o *.so + rm -f *.o *.so .*.d *.pdf *.dot $(MAKE) -C $(TESTS_DIR) clean PHONY += mrclean @@ -76,4 +69,7 @@ benchmarks: $(LIB_SO) fi $(MAKE) -C $(BENCH_DIR) +PHONY += pdfs +pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot)) + .PHONY: $(PHONY)