tests: litmus: link up Makefile properly
authorBrian Norris <banorris@uci.edu>
Wed, 16 Jan 2013 07:43:44 +0000 (23:43 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 16 Jan 2013 07:43:44 +0000 (23:43 -0800)
Now this builds the litmus tests properly.

test/Makefile

index c918368e253c6d282b9bece62f1031be4177e66c..f1ea5b295d110f81090bf2807b2aeb25c2b9f8bc 100644 (file)
@@ -8,7 +8,10 @@ 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$(BASE) -l$(LIB_NAME)
@@ -18,3 +21,4 @@ all: $(OBJS)
 
 clean::
        rm -f *.o
+       $(MAKE) -C litmus clean