Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A different make file for each architecture - Android NDK

I'm targeting more than 1 architecture with my c/c++ code compiled with the NDK, the problem is that i need to have a clear organization about my make files, i also have to set the same environment variable differently based on what architecture NDK is targeting when compiling.

How can i have different makefiles for each architecture?

like image 982
user827992 Avatar asked Jan 28 '26 18:01

user827992


1 Answers

You don't need different makefiles.

in Application.mk use:

APP_ABI := all

Then for example use

if eq($(TARGET_ARCH_ABI), armeabi)

<<insert your definitions here>>

endif

like image 56
Kenneth Hurley Avatar answered Jan 30 '26 08:01

Kenneth Hurley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!