3 OBJECTS = libthreads.o schedule.o model.o threads.o librace.o action.o \
4 nodestack.o clockvector.o main.o snapshot-interface.o cyclegraph.o \
5 datarace.o impatomic.o cmodelint.o \
6 snapshot.o malloc.o mymemory.o common.o mutex.o
8 CPPFLAGS += -Iinclude -I. -rdynamic
13 ifeq ($(UNAME), Darwin)
15 SHARED = -Wl,-undefined,dynamic_lookup -dynamiclib
20 program_H_SRCS := $(wildcard *.h) $(wildcard include/*.h)
21 program_C_SRCS := $(wildcard *.c) $(wildcard *.cc)
24 all: $(LIB_SO) $(DEPS) tests
26 $(DEPS): $(program_C_SRCS) $(program_H_SRCS)
27 $(CXX) -MM $(program_C_SRCS) $(CPPFLAGS) > $(DEPS)
31 debug: CPPFLAGS += -DCONFIG_DEBUG
39 $(CXX) $(SHARED) -o $(LIB_SO) $(OBJECTS) $(LDFLAGS)
42 $(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES $(CPPFLAGS)
45 $(CXX) -fPIC -c $< $(CPPFLAGS)
50 $(MAKE) -C $(TESTS_DIR) clean
62 $(MAKE) -C $(TESTS_DIR)