git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/utests - Fix DNS utest, update libc utests to new format (no more EXP files)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
Makefile.tpl
diff --git
a/Usermode/Libraries/Makefile.tpl
b/Usermode/Libraries/Makefile.tpl
index
5e241f2
..
8706a0a
100644
(file)
--- a/
Usermode/Libraries/Makefile.tpl
+++ b/
Usermode/Libraries/Makefile.tpl
@@
-43,7
+43,7
@@
else
V := @
endif
V := @
endif
-.PHONY: all clean install postbuild
+.PHONY: all clean install postbuild
utest-build utest-run generate_exp
all: _libs $(_BIN) $(_XBIN)
all: _libs $(_BIN) $(_XBIN)
@@
-55,6
+55,7
@@
HEADERS := $(patsubst include_exp/%,../../include/%,$(shell find include_exp/ -n
_libs: $(HEADERS)
../../include/%: include_exp/%
_libs: $(HEADERS)
../../include/%: include_exp/%
+ @echo [LN] $@
@mkdir -p $(dir $@)
@ln -s $(shell pwd)/$< $@
@mkdir -p $(dir $@)
@ln -s $(shell pwd)/$< $@
@@
-62,18
+63,16
@@
_libs: $(HEADERS)
utest: utest-build utest-run
utest: utest-build utest-run
-generate_exp: $(UTESTS:%=EXP_%.txt)
- @echo > /dev/null
+utest-build: _ $(UTESTS:%=TEST_%)
-utest-build: $(UTESTS:%=TEST_%)
- @echo > /dev/null
+utest-run: _ $(UTESTS:%=runtest-%)
-utest-run: $(UTESTS:%=runtest-%)
- @
echo > /dev/null
+_:
+ @
true
-$(UTESTS:%=runtest-%): runtest-%: TEST_%
EXP_%.txt
+$(UTESTS:%=runtest-%): runtest-%: TEST_%
@echo --- [TEST] $*
@echo --- [TEST] $*
- @./TEST_$*
| diff EXP_$*.txt -
+ @./TEST_$*
clean:
$(RM) $(_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES) $(EXTRACLEAN)
clean:
$(RM) $(_BIN) $(_XBIN) $(OBJ) $(_BIN).dsm $(DEPFILES) $(EXTRACLEAN)
@@
-136,7
+135,7
@@
$(OUTPUTDIR)Libs/%:
obj-native/%.no: %.c
@mkdir -p $(dir $@)
@echo [CC Native] -o $@
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 $@
TEST_%: obj-native/TEST_%.no obj-native/%.no
@echo [CC Native] -o $@
UCC
git Repository :: git.ucc.asn.au