7c422f5572
Adding the fixdep target into the Makefile.include to ease up building of fixdep helper, that needs to be built before we dive in to the build itself. The user can invoke the fixdep target to build the helper. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1443004442-32660-8-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27 lines
484 B
Makefile
27 lines
484 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
|
|
gcc -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
|