Using Make's 'wildcard' function in Android.mk

前端 未结 2 1172
有刺的猬
有刺的猬 2020-12-30 05:03

I\'m having a problem using Make\'s wildcard function in my Android.mk build file.

My other makefiles use a line like this one to specify \"All .c files in this fol

2条回答
  •  囚心锁ツ
    2020-12-30 05:36

    If your definition of "this directory" is "the directory containing this makefile", then

    $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))*.c)
    

    ought to work.

    (caveat: I don't know from Android)

提交回复
热议问题