From 6eec1448601d5767cb43720e537aa25b6626f69f Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 15 Dec 2016 16:15:08 +0000 Subject: project: clbuild-bat: added asm support. --- project/arch.mk | 3 +++ project/clbuild.sh | 21 ++++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) (limited to 'project') 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 \ -- cgit v1.2.3