Merge branch 'akpm' (patches from Andrew)
[linux-2.6-block.git] / arch / s390 / tools / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
c30f6828
HC
2#
3# Makefile for s390 specific build tools
4#
5
7fbf8315
HB
6kapi := arch/$(ARCH)/include/generated/asm
7kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h
8
7fbf8315
HB
9PHONY += kapi
10
11kapi: $(kapi-hdrs-y)
12
c30f6828 13hostprogs-y += gen_facilities
8bc1e4ec
HC
14hostprogs-y += gen_opcode_table
15
f1090b61 16HOSTCFLAGS_gen_facilities.o += $(LINUXINCLUDE)
c30f6828 17
ba97df45 18filechk_facility-defs.h = $(obj)/gen_facilities
c30f6828 19
ba97df45 20filechk_dis-defs.h = \
ad774086 21 $(obj)/gen_opcode_table < $(srctree)/arch/$(ARCH)/tools/opcodes.txt
8bc1e4ec 22
7fbf8315
HB
23$(kapi)/facility-defs.h: $(obj)/gen_facilities FORCE
24 $(call filechk,facility-defs.h)
8bc1e4ec 25
7fbf8315
HB
26$(kapi)/dis-defs.h: $(obj)/gen_opcode_table FORCE
27 $(call filechk,dis-defs.h)