tag:blogger.com,1999:blog-4534678275694985108.post2427106297189616790..comments2023-06-28T01:36:38.831-07:00Comments on RazzleGames Graphics and GameDev Blog: How to use Makefile wildcards/globbing on Android NDK JNIKyle Lucehttp://www.blogger.com/profile/02064286719528528074noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4534678275694985108.post-39581167953255762632012-09-17T22:43:27.665-07:002012-09-17T22:43:27.665-07:00Thanks for your comment. Funny enough, I think I ...Thanks for your comment. Funny enough, I think I may have used notdir at first. This is a nice solution if you're only going to be using the flat JNI directory and no subdirs for c/cpp/etc. However, if you wanted to organize your source into subdirectories "notdir" breaks as it will only take the file name neglecting everything before the last /. <br />http://www.gnu.org/softwareKyle Lucehttps://www.blogger.com/profile/02064286719528528074noreply@blogger.comtag:blogger.com,1999:blog-4534678275694985108.post-57630596473609826342012-09-17T01:59:24.844-07:002012-09-17T01:59:24.844-07:00Hey would just like to point out that your solutio...Hey would just like to point out that your solution works but you can replace 'subst jni/, ,' with the notdir instruction which accomplishes the same thing like this:<br /><br />MY_LOCAL_SRC_FILES := \$(wildcard $(MY_PATH)/*.c)<br />LOCAL_SRC_FILES := \$(notdir $(MY_LOCAL_SRC_FILES))Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4534678275694985108.post-5454873122834163502012-07-28T00:45:32.164-07:002012-07-28T00:45:32.164-07:00No problem friend! Glad to help.No problem friend! Glad to help.Kyle Lucehttps://www.blogger.com/profile/02064286719528528074noreply@blogger.comtag:blogger.com,1999:blog-4534678275694985108.post-36287324973462838782012-07-22T03:11:19.455-07:002012-07-22T03:11:19.455-07:00great, that's what I needgreat, that's what I need紫煌https://www.blogger.com/profile/17763838902775943140noreply@blogger.com