]> rtime.felk.cvut.cz Git - omk.git/blob - tests/asm
Update wvtool
[omk.git] / tests / asm
1 #!/bin/bash
2
3 . ./wvtest.sh
4
5 [[ $OMK_RULES != "linux" ]] && exit 0
6
7 WVSTART "Compile assembler in .S file"
8 cat > 'test.S' <<'EOF'
9 .global main
10 main:
11 EOF
12 cat > 'Makefile.omk' <<'EOF'
13 bin_PROGRAMS = test
14 test_SOURCES = test.S
15 EOF
16 needs_valid_CC
17 WVPASS make V=1
18
19 WVSTART "Compile assembler in .s file"
20 cat > 'test.s' <<'EOF'
21 .global main
22 main:
23 EOF
24 cat > 'Makefile.omk' <<'EOF'
25 bin_PROGRAMS = test
26 test_SOURCES = test.s
27 EOF
28 needs_valid_CC
29 WVPASS make V=1