Usermode/libc - Unit tests
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / Makefile
index cd4afa3..bcc369c 100644 (file)
@@ -20,9 +20,15 @@ BIN = libc.so
 \r
 include ../Makefile.tpl\r
 \r
-%.no: %.c\r
-       $(NCC) -c $< -o $@\r
+.PHONY: generate_exp\r
 \r
-TEST_%: TEST_%.no %.no\r
-       $(NCC) -o $@ TEST_$*.no $*.no\r
+utest-run: generate_exp\r
 \r
+generate_exp: EXP_printf.txt\r
+\r
+EXP_%.txt: TEST_%.native\r
+       ./TEST_printf.native > EXP_printf.txt\r
+       rm TEST_printf.native\r
+\r
+%.native: %.c\r
+       $(NCC) $< -o $@ -Wall -Werror\r

UCC git Repository :: git.ucc.asn.au