From 45b07e023ec0c2d1389f2a22403a43a57713a6b6 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 15 2016 18:21:43 +0000 Subject: project: clbuild-bat: added asm support. --- 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 \