summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-15 16:15:08 +0000
committermidipix <writeonce@midipix.org>2016-12-15 13:21:43 -0500
commit45b07e023ec0c2d1389f2a22403a43a57713a6b6 (patch)
tree2563d9cd18df88c987e0464a23050ca3e0cbc850
parenteaa1a157693e0cc90624ebb7353e997b3ff6f363 (diff)
downloaddalist-45b07e023ec0c2d1389f2a22403a43a57713a6b6.tar.bz2
dalist-45b07e023ec0c2d1389f2a22403a43a57713a6b6.tar.xz
project: clbuild-bat: added asm support.
-rw-r--r--project/arch.mk3
-rwxr-xr-xproject/clbuild.sh21
2 files changed, 21 insertions, 3 deletions
diff --git a/project/arch.mk b/project/arch.mk
index e69de29..00a9cfd 100644
--- a/project/arch.mk
+++ b/project/arch.mk
@@ -0,0 +1,3 @@
+shared-objs-asm:
+
+static-objs-asm:
diff --git a/project/clbuild.sh b/project/clbuild.sh
index e22610a..cdb2229 100755
--- a/project/clbuild.sh
+++ b/project/clbuild.sh
@@ -79,7 +79,22 @@ echo
echo "$cmd_abort_on_error"
echo
-# five: build objects
+# five: compile assembly sources
+make shared-objs-asm static-objs-asm \
+ | grep -v 'make\[1\]:' \
+ | grep -v "$mb_project_dir/sysinfo/host" \
+ | grep -v 'touch dirs.tag' \
+ | grep -v 'touch host.tag' \
+ | grep -v 'touch version.tag' \
+ | grep -v 'touch app.tag' \
+ | sed \
+ -e 's@'"$mb_cc -c "'@ml64 /nologo @' \
+ -e 's@ '"$mb_source_dir"'@ /c %source_dir%@' \
+ -e 's@-o @/Fo @g' \
+ -e 's@\.s@\.asm@g' \
+ -e 's,$,\n\n'"$cmd_abort_on_error"'\n,g'
+
+# six: compile C sources
make shared-objs static-objs app-objs \
| grep -v 'make\[1\]:' \
| grep -v "$mb_project_dir/sysinfo/host" \
@@ -120,7 +135,7 @@ echo '@echo clbuild: successfully built: shared-objs static-objs app-objs.'
echo '@echo.'
echo
-# six: create static archive
+# seven: create static archive
make static \
| grep -v 'make\[1\]:' \
| grep -v "rm -f " \
@@ -138,7 +153,7 @@ echo '@echo clbuild: successfully created: static archive.'
echo '@echo.'
echo
-# seven: link shared library
+# eight: link shared library
make LDFLAGS_IMPLIB= LDFLAGS_SONAME= shared-lib \
| grep -v 'make\[1\]:' \
| sed \