Drop obsoleted patch.
[linux-flexiantxendom0-3.2.10.git] / kdb / Makefile
1 #
2 # This file is subject to the terms and conditions of the GNU General Public
3 # License.  See the file "COPYING" in the main directory of this archive
4 # for more details.
5 #
6 # Copyright (c) 1999-2004 Silicon Graphics, Inc.  All Rights Reserved.
7 #
8
9 obj-y           := kdb_bt.o kdb_bp.o kdb_id.o kdbsupport.o gen-kdb_cmds.o kdbmain.o kdb_io.o
10
11 subdir-$(CONFIG_KDB_MODULES) := modules
12 obj-y += $(addsuffix /built-in.o, $(subdir-y))
13
14 clean-files := gen-kdb_cmds.c
15
16 override CFLAGS := $(CFLAGS:%-pg=% )
17
18 quiet_cmd_gen-kdb = GENKDB  $@
19       cmd_gen-kdb = $(AWK) 'BEGIN {print "\#include <linux/init.h>"} \
20                 /^\#/{next} \
21                 /^[ \t]*$$/{next} \
22                 {gsub(/"/, "\\\"", $$0); \
23                   print "static __initdata char kdb_cmd" cmds++ "[] = \"" $$0 "\\n\";"} \
24                 END {print "char __initdata *kdb_cmds[] = {"; for (i = 0; i < cmds; ++i) {print "  kdb_cmd" i ","}; print("  0\n};");}' \
25                 $(filter-out %/Makefile,$^) > $@
26
27 $(obj)/gen-kdb_cmds.c:  $(src)/kdb_cmds $(wildcard $(TOPDIR)/arch/$(ARCH)/kdb/kdb_cmds) $(src)/Makefile
28         $(call cmd,gen-kdb)