drm/radeon: add a PX quirk for another K53TK variant
[linux/fpc-iii.git] / tools / build / Makefile
blob8332959fbca4fb5b9a6c4f89b5ef479133ca9b43
1 ifeq ($(srctree),)
2 srctree := $(patsubst %/,%,$(dir $(shell pwd)))
3 srctree := $(patsubst %/,%,$(dir $(srctree)))
4 endif
6 include $(srctree)/tools//scripts/Makefile.include
8 define allow-override
9 $(if $(or $(findstring environment,$(origin $(1))),\
10 $(findstring command line,$(origin $(1)))),,\
11 $(eval $(1) = $(2)))
12 endef
14 $(call allow-override,CC,$(CROSS_COMPILE)gcc)
15 $(call allow-override,LD,$(CROSS_COMPILE)ld)
17 HOSTCC ?= gcc
18 HOSTLD ?= ld
19 HOSTAR ?= ar
21 export HOSTCC HOSTLD HOSTAR
23 ifeq ($(V),1)
24 Q =
25 else
26 Q = @
27 endif
29 export Q srctree CC LD
31 MAKEFLAGS := --no-print-directory
32 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
34 all: $(OUTPUT)fixdep
36 clean:
37 $(call QUIET_CLEAN, fixdep)
38 $(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
39 $(Q)rm -f fixdep
41 $(OUTPUT)fixdep-in.o: FORCE
42 $(Q)$(MAKE) $(build)=fixdep
44 $(OUTPUT)fixdep: $(OUTPUT)fixdep-in.o
45 $(QUIET_LINK)$(HOSTCC) $(LDFLAGS) -o $@ $<
47 FORCE:
49 .PHONY: FORCE