ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / eisa / Makefile
1 # Makefile for the Linux device tree
2
3 # Being anal sometimes saves a crash/reboot cycle... ;-)
4 EXTRA_CFLAGS    := -Werror
5
6 obj-$(CONFIG_EISA)              += eisa-bus.o
7 obj-${CONFIG_EISA_PCI_EISA}     += pci_eisa.o
8
9 # virtual_root.o should be the last EISA root device to initialize,
10 # so leave it at the end of the list.
11 obj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o
12
13
14 # Ugly hack to get DEVICE_NAME_SIZE value...
15 DEVICE_NAME_SIZE =$(shell awk '$$1=="\#define" && $$2=="DEVICE_NAME_SIZE" {print $$3-1}' $(srctree)/include/linux/device.h)
16
17 $(obj)/eisa-bus.o: $(obj)/devlist.h
18
19 quiet_cmd_eisaid = GEN     $@
20       cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
21
22 clean-files := devlist.h
23 $(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h
24         $(call cmd,eisaid)