X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FMakefile;h=f1ea5b295d110f81090bf2807b2aeb25c2b9f8bc;hb=7921811e8bd7bba2cdd892434a58ec7254ae0f99;hp=87893243ce83e32f9e27331ec8620de14c6bce2d;hpb=0217e321ae9bb43b3e629fdb400d6f1c41fb75f0;p=model-checker.git diff --git a/test/Makefile b/test/Makefile index 8789324..f1ea5b2 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,23 +1,24 @@ -include ../common.mk +BASE = .. -CPPFLAGS += -I.. -I../include +include $(BASE)/common.mk -# Mac OSX options -ifeq ($(UNAME), Darwin) -CPPFLAGS += -D_XOPEN_SOURCE -DMAC -endif +CPPFLAGS += -I$(BASE) -I$(BASE)/include SRCS = $(wildcard *.c) CPSRCS = $(wildcard *.cc) OBJS = $(patsubst %.c,%.o,$(SRCS)) $(patsubst %.cc,%.o,$(CPSRCS)) -all: $(OBJS) +all: $(OBJS) litmus-tests + +litmus-tests:: + $(MAKE) -C litmus %.o: %.c - $(CC) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME) + $(CC) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME) %.o: %.cc - $(CXX) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME) + $(CXX) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME) clean:: rm -f *.o + $(MAKE) -C litmus clean