annotate build.sh @ 3:672bd528de33

Fixes etc.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 28 Sep 2012 02:41:33 +0300
parents c12a8dda22bb
children db2e214a30eb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #!/bin/sh
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 CPWD=`pwd`
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 CEXE=krapula
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 CBINPATH=exe/
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 for arch in i686 core2; do
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 make -f Makefile clean
3
672bd528de33 Fixes etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
8 make -f Makefile EXTRA_CFLAGS="-march=$arch" EXEEXT=".bin"
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 mv "$CPWD/${CBINPATH}${CEXE}.bin" "$CPWD/${CBINPATH}${CEXE}-${arch}.bin"
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 strip "$CPWD/${CBINPATH}${CEXE}-${arch}.bin"
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 make -f Makefile.w32 clean
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 make -f Makefile.w32 EXTRA_CFLAGS="-march=$arch"
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 mv "$CPWD/${CBINPATH}${CEXE}.exe" "$CPWD/${CBINPATH}${CEXE}_${arch}.exe"
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 done