Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # Makefile for the Zorro bus specific drivers.
0004 #
0005 
0006 obj-$(CONFIG_ZORRO)     += zorro.o zorro-driver.o zorro-sysfs.o
0007 obj-$(CONFIG_PROC_FS)   += proc.o
0008 obj-$(CONFIG_ZORRO_NAMES) +=  names.o
0009 
0010 hostprogs               := gen-devlist
0011 
0012 # Files generated that shall be removed upon make clean
0013 clean-files := devlist.h
0014 
0015 # Dependencies on generated files need to be listed explicitly
0016 $(obj)/names.o: $(obj)/devlist.h
0017 
0018 # And that's how to generate them
0019 quiet_cmd_devlist = DEVLIST $@
0020       cmd_devlist = ( cd $(obj); ./gen-devlist ) < $<
0021 $(obj)/devlist.h: $(src)/zorro.ids $(obj)/gen-devlist
0022         $(call cmd,devlist)
0023