aboutsummaryrefslogtreecommitdiff
path: root/util/Makefile
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-18 22:13:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-18 22:13:46 +0000
commit30c00556ad8a5c6b6719589948bfda4e9f324b8d (patch)
tree7aa355fd0b89ec0b2611e17ee84a14c6fa449e22 /util/Makefile
parent8e521e2ea589b4cafb788330f83037a0413f200a (diff)
parentf635a4c50514783b67549770dee0c53c9fa0c773 (diff)
downloadlibyuv-30c00556ad8a5c6b6719589948bfda4e9f324b8d.tar.gz
Merge "Snap for 11735041 from 488a2af021e3e7473f083a9435b1472c0d411f3d to androidx-core-animation-release" into androidx-core-animation-releaseandroidx-core-animation-release
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 00000000..40e74b65
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,9 @@
+psnr: psnr.cc ssim.cc psnr_main.cc
+ifeq ($(CXX),icl)
+ $(CXX) /arch:SSE2 /Ox /openmp psnr.cc ssim.cc psnr_main.cc
+else
+ $(CXX) -msse2 -O3 -fopenmp -static -o psnr psnr.cc ssim.cc psnr_main.cc -Wl,--strip-all
+endif
+
+# for MacOS
+# /usr/local/bin/g++-7 -msse2 -O3 -fopenmp -Bstatic -o psnr psnr.cc ssim.cc psnr_main.cc