Usermode/utests - Fix DNS utest, update libc utests to new format (no more EXP files)
[tpg/acess2.git] / Usermode / Libraries / Makefile.tpl
index 3b8d2f5..8706a0a 100644 (file)
@@ -55,6 +55,7 @@ HEADERS := $(patsubst include_exp/%,../../include/%,$(shell find include_exp/ -n
 _libs: $(HEADERS)
 
 ../../include/%: include_exp/%
+       @echo [LN] $@
        @mkdir -p $(dir $@)
        @ln -s $(shell pwd)/$< $@
 
@@ -62,9 +63,12 @@ _libs: $(HEADERS)
 
 utest: utest-build utest-run
 
-utest-build: $(UTESTS:%=TEST_%)
+utest-build: $(UTESTS:%=TEST_%)
 
-utest-run: $(UTESTS:%=runtest-%)
+utest-run: _ $(UTESTS:%=runtest-%)
+
+_:
+       @true
 
 $(UTESTS:%=runtest-%): runtest-%: TEST_%
        @echo --- [TEST] $*
@@ -131,7 +135,7 @@ $(OUTPUTDIR)Libs/%:
 obj-native/%.no: %.c
        @mkdir -p $(dir $@)
        @echo [CC Native] -o $@
-       @$(NCC) -g -c $< -o $@ -Wall -std=gnu99 -MD -MP -MF [email protected] '-D_SysDebug(f,v...)=fprintf(stderr,"DEBUG "f"\n",##v)' -include stdio.h
+       @$(NCC) -g -c $< -o $@ -Wall -std=gnu99 -MD -MP -MF [email protected] '-D_SysDebug(f,v...)=fprintf(stderr,"DEBUG "f"\n",##v)' -include stdio.h -I $(ACESSDIR)/Usermode/Libraries/_utest_include/
 
 TEST_%: obj-native/TEST_%.no obj-native/%.no
        @echo [CC Native] -o $@

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