masterブランチをマージ
[YACASL2.git] / test / unit / TEST.mk
index 96c908d..4d473e9 100644 (file)
@@ -32,9 +32,8 @@ clean:
        @rm -f a.out 1.txt diff.txt report.txt
 cleanall: clean
        @rm -f 0.txt
-$(SRCDIR)/%.o: $(SRCDIR)/%.c
-       @$(CC) -c $(CFLAGS) $<
 a.out: $(SRC) $(TESTSRCFILE)
+       @make -C $(SRCDIR)
        @gcc $(CFLAGS) $(SRC) $(TESTSRCFILE)
 0.txt 1.txt: a.out
        @./a.out >$@ 2>&1