mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
Use $(CC) instead of harcoded gcc binary name. Signed-off-by: David Carrillo-Cisneros <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Paul Turner <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
27 lines
486 B
Makefile
27 lines
486 B
Makefile
export srctree := $(abspath ../../../..)
|
|
export CC := gcc
|
|
export LD := ld
|
|
export AR := ar
|
|
|
|
ex:
|
|
|
|
include $(srctree)/tools/build/Makefile.include
|
|
|
|
ex: ex-in.o libex-in.o
|
|
$(CC) -o $@ $^
|
|
|
|
ex.%: fixdep FORCE
|
|
make -f $(srctree)/tools/build/Makefile.build dir=. $@
|
|
|
|
ex-in.o: fixdep FORCE
|
|
make $(build)=ex
|
|
|
|
libex-in.o: fixdep FORCE
|
|
make $(build)=libex
|
|
|
|
clean:
|
|
find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
|
|
rm -f ex ex.i ex.s
|
|
|
|
.PHONY: FORCE
|