]> rtime.felk.cvut.cz Git - zynq/linux-build.git/blob - build/xlnx_4.9/linux/GNUmakefile
61d4ce8c2d6ef4a8c9a47857a4bd630df9ba4215
[zynq/linux-build.git] / build / xlnx_4.9 / linux / GNUmakefile
1 export ARCH=arm
2 export CROSS_COMPILE=arm-none-eabi-
3
4 VERSION = 4
5 PATCHLEVEL = 9
6
7 lastword = $(word $(words $(1)),$(1))
8 makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
9
10 ifeq ("$(origin V)", "command line")
11 VERBOSE := $(V)
12 endif
13 ifneq ($(VERBOSE),1)
14 Q := @
15 endif
16
17 MAKEARGS := -C ../../../src/xlnx_4.9
18 MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
19
20 MAKEFLAGS += --no-print-directory
21
22 .PHONY: all $(MAKECMDGOALS)
23
24 all     := $(filter-out all Makefile,$(MAKECMDGOALS))
25
26 all:
27         $(Q)$(MAKE) $(MAKEARGS) $(all)
28
29 Makefile:;
30
31 $(all): all
32         @:
33
34 %/: all
35         @: