X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=Makefile;h=19f9a2c06900c5835fae6d256ff91d83437dbdc3;hp=f6a0837eea4e38f076da313859eeedff14eaf6d9;hb=c1cc5e279bcba4216bde88a63dafac96d3ef47ba;hpb=70515e16c177a40e1053285262ff34e10c33e57e diff --git a/Makefile b/Makefile index f6a0837..19f9a2c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include common.mk OBJECTS = libthreads.o schedule.o model.o threads.o librace.o action.o \ nodestack.o clockvector.o main.o snapshot-interface.o cyclegraph.o \ datarace.o impatomic.o cmodelint.o \ - snapshot.o malloc.o mymemory.o common.o + snapshot.o malloc.o mymemory.o common.o mutex.o CPPFLAGS += -Iinclude -I. -rdynamic LDFLAGS = -ldl -lrt @@ -11,7 +11,6 @@ SHARED = -shared # Mac OSX options ifeq ($(UNAME), Darwin) -CPPFLAGS += -D_XOPEN_SOURCE -DMAC LDFLAGS = -ldl SHARED = -Wl,-undefined,dynamic_lookup -dynamiclib endif @@ -27,14 +26,12 @@ all: $(LIB_SO) $(DEPS) tests $(DEPS): $(program_C_SRCS) $(program_H_SRCS) $(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS) -# Only include, rebuild make.deps when it's going to be used -ifeq ($(MAKECMDGOALS),$(DEPS)) include $(DEPS) -endif debug: CPPFLAGS += -DCONFIG_DEBUG debug: all +PHONY += docs docs: *.c *.cc *.h doxygen @@ -47,15 +44,21 @@ malloc.o: malloc.c %.o: %.cc $(CXX) -fPIC -c $< $(CPPFLAGS) +PHONY += clean clean: rm -f *.o *.so $(MAKE) -C $(TESTS_DIR) clean +PHONY += mrclean mrclean: clean rm -rf docs -tags:: +PHONY += tags +tags: ctags -R -tests:: $(LIB_SO) +PHONY += tests +tests: $(LIB_SO) $(MAKE) -C $(TESTS_DIR) + +.PHONY: $(PHONY)