X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flitmus%2FMakefile;h=a4a19b7b6b5f714be633d4a8c6b5d0ad37c4b66d;hb=2935d5ce8b7315c0b13306b15ac18beeacfc37bb;hp=b4a1233d70685f895b7a4e07198bdaf7fee91f23;hpb=9aae08ba6d60aa253039d2da1c3571fdde2ac159;p=model-checker.git diff --git a/test/litmus/Makefile b/test/litmus/Makefile index b4a1233..a4a19b7 100644 --- a/test/litmus/Makefile +++ b/test/litmus/Makefile @@ -1,20 +1,4 @@ -BASE = ../.. +D := $(DIR) -include $(BASE)/common.mk - -CPPFLAGS += -I$(BASE) -I$(BASE)/include - -SRCS = $(wildcard *.c) -CPSRCS = $(wildcard *.cc) -OBJS = $(patsubst %.c,%.o,$(SRCS)) $(patsubst %.cc,%.o,$(CPSRCS)) - -all: $(OBJS) - -%.o: %.c - $(CC) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME) - -%.o: %.cc - $(CXX) -o $@ $< $(CPPFLAGS) -L$(BASE) -l$(LIB_NAME) - -clean:: - rm -f *.o +OBJECTS += $(patsubst %.c, %.o, $(wildcard $(D)/*.c)) +OBJECTS += $(patsubst %.cc, %.o, $(wildcard $(D)/*.cc))