# Makefile fragment for Linux device drivers and the glue code.

# Copyright (C) 2006, 2007, 2011 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#
# Files for device driver support.
#

if CODE_linux
noinst_LIBRARIES += \
	liblinux.a
gnumach_o_LDADD += \
	liblinux.a
endif

liblinux_a_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(srcdir)/$(systype)/linux/dev/include \
	-I$(top_builddir)/linux/dev/include \
	-I$(srcdir)/linux/dev/include \
	-I$(top_builddir)/linux/src/include \
	-I$(srcdir)/linux/src/include
# Because of the use of `extern inline' in some Linux header files without
# corresponding text segment definitions, we must always optimize.
liblinux_a_CFLAGS = -O2 $(AM_CFLAGS)

# See <http://lists.gnu.org/archive/html/bug-hurd/2006-01/msg00148.html>.
liblinux_a_CFLAGS += \
	-fno-strict-aliasing

# TODO.  Do we really need `-traditional'?
liblinux_a_CCASFLAGS = $(AM_CCASFLAGS) \
	-D__ASSEMBLY__ -traditional \
	$(liblinux_a_CPPFLAGS)

liblinux_a_SOURCES = \
	linux/dev/init/version.c \
	linux/dev/kernel/softirq.c \
	linux/src/arch/i386/lib/delay.c \
	linux/dev/kernel/dma.c \
	linux/dev/kernel/resource.c \
	linux/dev/kernel/printk.c \
	linux/src/arch/i386/kernel/bios32.c \
	linux/dev/arch/i386/kernel/irq.c \
	linux/src/lib/ctype.c \
	linux/dev/lib/vsprintf.c \
	linux/dev/init/main.c \
	linux/dev/glue/misc.c \
	linux/dev/kernel/sched.c \
	linux/dev/glue/kmem.c \
	linux/dev/glue/block.c \
	linux/dev/glue/glue.h \
	linux/dev/arch/i386/kernel/setup.c

liblinux_a_SOURCES += \
	linux/src/drivers/pci/pci.c \
	linux/dev/drivers/block/genhd.c

#
# Linux device drivers.
#
if device_driver_floppy
liblinux_a_SOURCES += \
	linux/dev/drivers/block/floppy.c
endif

if device_driver_ide
liblinux_a_SOURCES += \
	linux/src/drivers/block/cmd640.c \
	linux/src/drivers/block/ide-cd.c \
	linux/src/drivers/block/ide.c \
	linux/src/drivers/block/ide.h \
	linux/dev/drivers/block/ahci.c \
	linux/dev/include/ahci.h \
	linux/src/drivers/block/ide_modes.h \
	linux/src/drivers/block/rz1000.c \
	linux/src/drivers/block/triton.c
endif

if device_driver_group_scsi
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/constants.c \
	linux/src/drivers/scsi/constants.h \
	linux/src/drivers/scsi/hosts.c \
	linux/src/drivers/scsi/hosts.h \
	linux/src/drivers/scsi/scsi.c \
	linux/src/drivers/scsi/scsi.h \
	linux/src/drivers/scsi/scsi_ioctl.c \
	linux/src/drivers/scsi/scsi_proc.c \
	linux/src/drivers/scsi/scsicam.c \
	linux/src/drivers/scsi/sd.c \
	linux/src/drivers/scsi/sd.h \
	linux/src/drivers/scsi/sd_ioctl.c \
	linux/src/drivers/scsi/sr.c \
	linux/src/drivers/scsi/sr.h \
	linux/src/drivers/scsi/sr_ioctl.c
endif

if device_driver_53c78xx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/53c7,8xx.h \
	linux/src/drivers/scsi/53c78xx.c \
	linux/src/drivers/scsi/53c8xx_d.h \
	linux/src/drivers/scsi/53c8xx_u.h
endif

if device_driver_AM53C974
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/AM53C974.c \
	linux/src/drivers/scsi/AM53C974.h
endif

if device_driver_BusLogic
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/BusLogic.c \
	linux/src/drivers/scsi/BusLogic.h
EXTRA_DIST += \
	linux/src/drivers/scsi/FlashPoint.c
endif

if device_driver_NCR53c406a
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/NCR53c406a.c \
	linux/src/drivers/scsi/NCR53c406a.h
endif

if device_driver_advansys
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/advansys.c \
	linux/src/drivers/scsi/advansys.h
endif

if device_driver_aha152x
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha152x.c \
	linux/src/drivers/scsi/aha152x.h
endif

if device_driver_aha1542
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha1542.c \
	linux/src/drivers/scsi/aha1542.h
endif

if device_driver_aha1740
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aha1740.c \
	linux/src/drivers/scsi/aha1740.h
endif

if device_driver_aic7xxx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/aic7xxx.c \
	linux/src/drivers/scsi/aic7xxx.h \
	linux/src/drivers/scsi/aic7xxx/scsi_message.h \
	linux/src/drivers/scsi/aic7xxx/sequencer.h \
	linux/src/drivers/scsi/aic7xxx_reg.h
EXTRA_DIST += \
	linux/src/drivers/scsi/aic7xxx_proc.c \
	linux/src/drivers/scsi/aic7xxx_seq.c
endif

if device_driver_dtc
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/dtc.c \
	linux/src/drivers/scsi/dtc.h
endif

if device_driver_eata
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/eata.c \
	linux/src/drivers/scsi/eata.h \
	linux/src/drivers/scsi/eata_generic.h
endif

if device_driver_eata_dma
liblinux_a_SOURCES += \
	linux/dev/drivers/scsi/eata_dma.c \
	linux/src/drivers/scsi/eata_dma.h \
	linux/src/drivers/scsi/eata_dma_proc.h
EXTRA_DIST += \
	linux/src/drivers/scsi/eata_dma_proc.c
endif

if device_driver_eata_pio
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/eata_pio.c \
	linux/src/drivers/scsi/eata_pio.h
EXTRA_DIST += \
	linux/src/drivers/scsi/eata_pio_proc.c
endif

if device_driver_fdomain
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/fdomain.c \
	linux/src/drivers/scsi/fdomain.h
endif

if device_driver_g_NCR5380
liblinux_a_SOURCES += \
	linux/dev/drivers/scsi/g_NCR5380.c \
	linux/src/drivers/scsi/g_NCR5380.h
endif

if device_driver_gdth
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/gdth.c \
	linux/src/drivers/scsi/gdth.h \
	linux/src/drivers/scsi/gdth_ioctl.h \
	linux/src/drivers/scsi/gdth_proc.h
EXTRA_DIST += \
	linux/src/drivers/scsi/gdth_proc.c
endif

if device_driver_in2000
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/in2000.c \
	linux/src/drivers/scsi/in2000.h
endif

if device_driver_ncr53c8xx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ncr53c8xx.c \
	linux/src/drivers/scsi/ncr53c8xx.h
endif

if device_driver_pas16
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/pas16.c \
	linux/src/drivers/scsi/pas16.h
endif

if device_driver_ppa
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ppa.c \
	linux/src/drivers/scsi/ppa.h
endif

if device_driver_qlogicfas
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/qlogicfas.c \
	linux/src/drivers/scsi/qlogicfas.h
endif

if device_driver_qlogicisp
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/qlogicisp.c \
	linux/src/drivers/scsi/qlogicisp.h
endif

if device_driver_seagate
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/seagate.c \
	linux/src/drivers/scsi/seagate.h
endif

if device_driver_sym53c8xx
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/sym53c8xx.c \
	linux/src/drivers/scsi/sym53c8xx_comm.h \
	linux/src/drivers/scsi/sym53c8xx.h \
	linux/src/drivers/scsi/sym53c8xx_defs.h
endif

if device_driver_t128
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/t128.c \
	linux/src/drivers/scsi/t128.h
endif

if device_driver_tmscsim
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/dc390.h \
	linux/src/drivers/scsi/tmscsim.c \
	linux/src/drivers/scsi/tmscsim.h
EXTRA_DIST += \
	linux/src/drivers/scsi/scsiiom.c
endif

if device_driver_u14_34f
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/u14-34f.c \
	linux/src/drivers/scsi/u14-34f.h
endif

if device_driver_ultrastor
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/ultrastor.c \
	linux/src/drivers/scsi/ultrastor.h
endif

if device_driver_wd7000
liblinux_a_SOURCES += \
	linux/src/drivers/scsi/wd7000.c \
	linux/src/drivers/scsi/wd7000.h
endif

EXTRA_DIST += \
	linux/src/drivers/scsi/NCR5380.c \
	linux/src/drivers/scsi/NCR5380.h

if device_driver_group_net
liblinux_a_SOURCES += \
	linux/dev/drivers/net/auto_irq.c \
	linux/dev/glue/net.c \
	linux/dev/drivers/net/Space.c \
	linux/dev/net/core/dev.c \
	linux/dev/drivers/net/net_init.c \
	linux/src/drivers/net/pci-scan.c \
	linux/src/drivers/net/pci-scan.h
endif

if device_driver_3c501
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c501.c
endif

if device_driver_3c503
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c503.c \
	linux/src/drivers/net/3c503.h \
	linux/src/drivers/net/8390.c
endif

if device_driver_3c505
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c505.c \
	linux/src/drivers/net/3c505.h
endif

if device_driver_3c507
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c507.c
endif

if device_driver_3c509
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c509.c
endif

if device_driver_3c59x
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c59x.c
endif

if device_driver_3c515
liblinux_a_SOURCES += \
	linux/src/drivers/net/3c515.c
endif

if device_driver_ac3200
liblinux_a_SOURCES += \
	linux/src/drivers/net/ac3200.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_apricot
liblinux_a_SOURCES += \
	linux/src/drivers/net/apricot.c
endif

if device_driver_at1700
liblinux_a_SOURCES += \
	linux/src/drivers/net/at1700.c
endif

if device_driver_atp
liblinux_a_SOURCES += \
	linux/src/drivers/net/atp.c \
	linux/src/drivers/net/atp.h
endif

#if device_driver_cb_shim
#liblinux_a_SOURCES += \
#	linux/src/drivers/net/cb_shim.c
#endif

if device_driver_de4x5
liblinux_a_SOURCES += \
	linux/src/drivers/net/de4x5.c \
	linux/src/drivers/net/de4x5.h
endif

if device_driver_de600
liblinux_a_SOURCES += \
	linux/src/drivers/net/de600.c
endif

if device_driver_de620
liblinux_a_SOURCES += \
	linux/src/drivers/net/de620.c \
	linux/src/drivers/net/de620.h
endif

if device_driver_depca
liblinux_a_SOURCES += \
	linux/src/drivers/net/depca.c \
	linux/src/drivers/net/depca.h
endif

if device_driver_e2100
liblinux_a_SOURCES += \
	linux/src/drivers/net/e2100.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_eepro
liblinux_a_SOURCES += \
	linux/src/drivers/net/eepro.c
endif

if device_driver_eepro100
liblinux_a_SOURCES += \
	linux/src/drivers/net/eepro100.c
endif

if device_driver_eexpress
liblinux_a_SOURCES += \
	linux/src/drivers/net/eexpress.c \
	linux/src/drivers/net/eth82586.h
endif

if device_driver_epic100
liblinux_a_SOURCES += \
	linux/src/drivers/net/epic100.c
endif

if device_driver_eth16i
liblinux_a_SOURCES += \
	linux/src/drivers/net/eth16i.c
endif

if device_driver_ewrk3
liblinux_a_SOURCES += \
	linux/src/drivers/net/ewrk3.c \
	linux/src/drivers/net/ewrk3.h
endif

if device_driver_fmv18x
liblinux_a_SOURCES += \
	linux/src/drivers/net/fmv18x.c
endif

if device_driver_hamachi
liblinux_a_SOURCES += \
	linux/src/drivers/net/hamachi.c
endif

if device_driver_hp_plus
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp-plus.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_hp
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_hp100
liblinux_a_SOURCES += \
	linux/src/drivers/net/hp100.c \
	linux/src/drivers/net/hp100.h
endif

if device_driver_intel_gige
liblinux_a_SOURCES += \
	linux/src/drivers/net/intel-gige.c
endif

if device_driver_lance
liblinux_a_SOURCES += \
	linux/src/drivers/net/lance.c
endif

if device_driver_myson803
liblinux_a_SOURCES += \
	linux/src/drivers/net/myson803.c
endif

if device_driver_natsemi
liblinux_a_SOURCES += \
	linux/src/drivers/net/natsemi.c
endif

if device_driver_ne
liblinux_a_SOURCES += \
	linux/src/drivers/net/ne.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_ne2k_pci
liblinux_a_SOURCES += \
	linux/src/drivers/net/ne2k-pci.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_ni52
liblinux_a_SOURCES += \
	linux/src/drivers/net/ni52.c \
	linux/src/drivers/net/ni52.h
endif

if device_driver_ni65
liblinux_a_SOURCES += \
	linux/src/drivers/net/ni65.c \
	linux/src/drivers/net/ni65.h
endif

if device_driver_ns820
liblinux_a_SOURCES += \
	linux/src/drivers/net/ns820.c
endif

if device_driver_pcnet32
liblinux_a_SOURCES += \
	linux/src/drivers/net/pcnet32.c
endif

if device_driver_rtl8139
liblinux_a_SOURCES += \
	linux/src/drivers/net/rtl8139.c
endif

if device_driver_seeq8005
liblinux_a_SOURCES += \
	linux/src/drivers/net/seeq8005.c \
	linux/src/drivers/net/seeq8005.h
endif

if device_driver_sis900
liblinux_a_SOURCES += \
	linux/src/drivers/net/sis900.c \
	linux/src/drivers/net/sis900.h
endif

if device_driver_sk_g16
liblinux_a_SOURCES += \
	linux/src/drivers/net/sk_g16.c \
	linux/src/drivers/net/sk_g16.h
endif

if device_driver_smc_ultra
liblinux_a_SOURCES += \
	linux/src/drivers/net/smc-ultra.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_smc_ultra32
liblinux_a_SOURCES += \
	linux/src/drivers/net/smc-ultra32.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_starfire
liblinux_a_SOURCES += \
	linux/src/drivers/net/starfire.c
endif

if device_driver_sundance
liblinux_a_SOURCES += \
	linux/src/drivers/net/sundance.c
endif

if device_driver_tlan
liblinux_a_SOURCES += \
	linux/src/drivers/net/tlan.c \
	linux/src/drivers/net/tlan.h
endif

if device_driver_tulip
liblinux_a_SOURCES += \
	linux/src/drivers/net/tulip.c
endif

if device_driver_via_rhine
liblinux_a_SOURCES += \
	linux/src/drivers/net/via-rhine.c
endif

if device_driver_wavelan
liblinux_a_SOURCES += \
	linux/src/drivers/net/i82586.h \
	linux/src/drivers/net/wavelan.c \
	linux/src/drivers/net/wavelan.h \
	linux/dev/drivers/net/wavelan.p.h
endif

if device_driver_wd
liblinux_a_SOURCES += \
	linux/src/drivers/net/wd.c
endif

if device_driver_winbond_840
liblinux_a_SOURCES += \
	linux/src/drivers/net/winbond-840.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_yellowfin
liblinux_a_SOURCES += \
	linux/src/drivers/net/yellowfin.c
endif

if device_driver_znet
liblinux_a_SOURCES += \
	linux/src/drivers/net/znet.c
endif

EXTRA_DIST += \
	linux/src/drivers/net/8390.h \
	linux/src/drivers/net/kern_compat.h

# pcmcia-cs.

liblinux_pcmcia_cs_modules_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_modules_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/pcmcia_glue.h
liblinux_pcmcia_cs_modules_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_modules.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_modules.a
endif

liblinux_pcmcia_cs_modules_a_SOURCES += \
	linux/pcmcia-cs/glue/pcmcia.c \
	linux/pcmcia-cs/glue/pcmcia_glue.h \
	linux/pcmcia-cs/modules/cs.c \
	linux/pcmcia-cs/modules/cs_internal.h \
	linux/pcmcia-cs/modules/ds.c \
	linux/pcmcia-cs/modules/rsrc_mgr.c \
	linux/pcmcia-cs/modules/bulkmem.c \
	linux/pcmcia-cs/modules/cistpl.c \
	linux/pcmcia-cs/modules/pci_fixup.c
EXTRA_DIST += \
	linux/pcmcia-cs/glue/ds.c

if device_driver_i82365
liblinux_pcmcia_cs_modules_a_SOURCES += \
	linux/pcmcia-cs/modules/cirrus.h \
	linux/pcmcia-cs/modules/ene.h \
	linux/pcmcia-cs/modules/i82365.c \
	linux/pcmcia-cs/modules/i82365.h \
	linux/pcmcia-cs/modules/o2micro.h \
	linux/pcmcia-cs/modules/ricoh.h \
	linux/pcmcia-cs/modules/smc34c90.h \
	linux/pcmcia-cs/modules/ti113x.h \
	linux/pcmcia-cs/modules/topic.h \
	linux/pcmcia-cs/modules/vg468.h \
	linux/pcmcia-cs/modules/yenta.h
endif

liblinux_pcmcia_cs_clients_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-DPCMCIA_CLIENT -I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_clients_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/pcmcia_glue.h
liblinux_pcmcia_cs_clients_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_clients.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_clients.a
endif

if device_driver_3c574_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/3c574_cs.c
endif

if device_driver_3c589_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/3c589_cs.c
endif

if device_driver_axnet_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/ax8390.h \
	linux/pcmcia-cs/clients/axnet_cs.c
endif

if device_driver_fmvj18x_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/fmvj18x_cs.c
endif

if device_driver_nmclan_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/nmclan_cs.c
endif

if device_driver_pcnet_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/pcnet_cs.c \
	linux/src/drivers/net/8390.c
endif

if device_driver_smc91c92_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/ositech.h \
	linux/pcmcia-cs/clients/smc91c92_cs.c
endif

if device_driver_xirc2ps_cs
liblinux_pcmcia_cs_clients_a_SOURCES += \
	linux/pcmcia-cs/clients/xirc2ps_cs.c
endif

liblinux_pcmcia_cs_wireless_a_CPPFLAGS = $(liblinux_a_CPPFLAGS) \
	-I$(srcdir)/linux/pcmcia-cs/include
liblinux_pcmcia_cs_wireless_a_CFLAGS = $(liblinux_a_CFLAGS) \
	-include $(srcdir)/linux/pcmcia-cs/glue/wireless_glue.h
liblinux_pcmcia_cs_wireless_a_SOURCES =
if device_driver_group_pcmcia
noinst_LIBRARIES += \
	liblinux_pcmcia_cs_wireless.a
gnumach_o_LDADD += \
	liblinux_pcmcia_cs_wireless.a
endif

if device_driver_orinoco_cs
liblinux_pcmcia_cs_wireless_a_SOURCES += \
	linux/pcmcia-cs/glue/wireless_glue.h \
	linux/pcmcia-cs/wireless/hermes.c \
	linux/pcmcia-cs/wireless/hermes.h \
	linux/pcmcia-cs/wireless/hermes_rid.h \
	linux/pcmcia-cs/wireless/ieee802_11.h \
	linux/pcmcia-cs/wireless/orinoco.c \
	linux/pcmcia-cs/wireless/orinoco.h \
	linux/pcmcia-cs/wireless/orinoco_cs.c
endif

#
# Building a distribution.
#

EXTRA_DIST += \
	linux/dev/README \
	linux/src/COPYING

# Those get #included...
EXTRA_DIST += \
	linux/src/drivers/scsi/FlashPoint.c \
	linux/src/drivers/scsi/eata_pio_proc.c \
	linux/src/drivers/scsi/scsiiom.c

# Instead of listing each file individually...
EXTRA_DIST += \
	linux/dev/include \
	linux/src/include
EXTRA_DIST += \
	linux/pcmcia-cs/include
dist-hook: dist-hook-linux
.PHONY: dist-hook-linux
dist-hook-linux:
# These symbolic links are copied from the build directory due to including
# `linux/dev/include linux/src/include' to `EXTRA_DIST' above.
	rm -f					\
	  $(distdir)/linux/dev/include/asm	\
	  $(distdir)/linux/src/include/asm

#
# Architecture specific parts.
#

if HOST_ix86
include i386/linux/Makefrag.am
endif