add UNLEASHED_OBJ to unleashed.mk
[unleashed/tickless.git] / bin / make / unit-tests / modmatch.mk
blob45199287acdbfe7f11abfe51e514f88a9f2fcba3
2 X=a b c d e
4 .for x in $X
5 LIB${x:tu}=/tmp/lib$x.a
6 .endfor
8 X_LIBS= ${LIBA} ${LIBD} ${LIBE}
10 LIB?=a
12 var = head
13 res = no
14 .if !empty(var:M${:Uhead\:tail:C/:.*//})
15 res = OK
16 .endif
18 all: show-libs check-cclass
20 show-libs:
21 @for x in $X; do ${.MAKE} -f ${MAKEFILE} show LIB=$$x; done
22 @echo "Mscanner=${res}"
24 show:
25 @echo 'LIB=${LIB} X_LIBS:M$${LIB$${LIB:tu}} is "${X_LIBS:M${LIB${LIB:tu}}}"'
26 @echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a is "${X_LIBS:M*/lib${LIB}.a}"'
27 @echo 'LIB=${LIB} X_LIBS:M*/lib$${LIB}.a:tu is "${X_LIBS:M*/lib${LIB}.a:tu}"'
29 LIST= One Two Three Four five six seven
31 check-cclass:
32 @echo Upper=${LIST:M[A-Z]*}
33 @echo Lower=${LIST:M[^A-Z]*}
34 @echo nose=${LIST:M[^s]*[ex]}