comet2コマンドのシステムテストで、オブジェクトファイルを直接実行するテストを追加
[YACASL2.git] / test / system / comet2 / direct / Makefile
diff --git a/test/system/comet2/direct/Makefile b/test/system/comet2/direct/Makefile
new file mode 100644 (file)
index 0000000..894b127
--- /dev/null
@@ -0,0 +1,23 @@
+include ../Define.mk
+include ../Test.mk
+
+CC := gcc
+CFLAGS := -Wall
+INCLUDEDIR := ../../../../include
+
+.INTERMEDIATE: create_a a.comet
+
+a.comet: create_a
+       ./$^
+
+create_a: create_a.c
+       $(CC) $(CFLAGS) -I $(INCLUDEDIR) -o $@ $^
+
+$(CMD_FILE): a.comet
+
+clean: clean0
+
+clean0:
+       @rm -f create_a
+       @rm -rf create_a.dSYM
+       @rm -f a.comet