X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FMakefile;h=f1ea5b295d110f81090bf2807b2aeb25c2b9f8bc;hb=09c3eb5539455e82dcb357fbce82bf5974c3a37c;hp=a0b6d6e4ac9829bb6184e41c6cc5bca8b064c03e;hpb=d1930060e483b841f0a9c35c5041035dbdf6de4a;p=model-checker.git diff --git a/test/Makefile b/test/Makefile index a0b6d6e..f1ea5b2 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,16 +1,24 @@ -include ../common.mk +BASE = .. -CPPFLAGS += -I.. -I../include +include $(BASE)/common.mk -# Mac OSX options +CPPFLAGS += -I$(BASE) -I$(BASE)/include SRCS = $(wildcard *.c) -OBJS = $(patsubst %.c,%.o,$(SRCS)) +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$(BASE) -l$(LIB_NAME) clean:: rm -f *.o + $(MAKE) -C litmus clean