lkml.org 
[lkml]   [2015]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target
On Tue, Mar 10, 2015 at 04:41:39PM -0600, Shuah Khan wrote:
>
> Are you looking for something like this:
>
> all: kcmp_test
>
> kcmp_test:
> $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test
>
> I just simplified it and removed the prerequsite.
> If you prefer, I can make the change to keep the
> prereq.

Yes please, and you may use internal make var $@ as well

kcmp_test:
$(CC) $(CFLAGS) kcmp_test.c -o $@


\
 
 \ /
  Last update: 2015-03-11 00:01    [W:1.029 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site