]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/literals-coalesce-alignment/Makefile
ld64-84.1.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / literals-coalesce-alignment / Makefile
old mode 100644 (file)
new mode 100755 (executable)
index b27351b..15f3307
@@ -32,14 +32,15 @@ run: all
 
 all:
        ${CC} ${ASMFLAGS} cstring-align-0.s -c -o cstring-align-0-${ARCH}.o
+       ${FAIL_IF_BAD_OBJ} cstring-align-0-${ARCH}.o
+
        ${CC} ${ASMFLAGS} cstring-align-3.s -c -o cstring-align-3-${ARCH}.o
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} cstring-align-3-${ARCH}.o | grep 'align:' > align-3
+
        ${LD} -arch ${ARCH} -r cstring-align-0-${ARCH}.o cstring-align-3-${ARCH}.o -o cstring-r-${ARCH}.o
-       ${OBJECTDUMP} cstring-align-3-${ARCH}.o | grep 'align:' > align-3
-       ${OBJECTDUMP} cstring-r-${ARCH}.o | grep 'align:' > align-r
-       ${PASS_IFF} diff align-3  align-r
+       ${FAIL_IF_ERROR} ${OBJECTDUMP} cstring-r-${ARCH}.o | grep 'align:' > align-r
 
-clean:
-       rm -rf cstring-align-0-${ARCH}.o cstring-align-3-${ARCH}.o cstring-r-${ARCH}.o align-3 align-r
-               
-       
+       ${PASS_IFF} diff align-3 align-r
 
+clean:
+       rm -rf *.o align-3 align-r