Build for AROS..
[AROS.git] / workbench / devs / AHI / Drivers / Makefile.in
blob9ce71211692c1bd4753f7d42534e75909754259d
2 # Makefile.in for the drivers
6 # Autoconfig stuff
7 ########################################
9 @SET_MAKE@
11 top_srcdir = @top_srcdir@
12 srcdir = @srcdir@
13 DISTDIR = @DISTDIR@
15 DEVDIR = ${DISTDIR}/Developer
16 DRIVERDIR = ${DEVDIR}/Drivers
18 host = @host@
20 INSTALL = @INSTALL@
21 INSTALL_DATA = @INSTALL_DATA@
23 VPATH = @srcdir@
25 HAVE_OPENPCI = @HAVE_OPENPCI@
26 HAVE_OSS = @HAVE_OSS@
27 HAVE_ASMIO = @HAVE_ASMIO@
30 # Targets
31 ########################################
33 .PHONY: all clean distclean maintainer-clean bindist
35 SUBDIRS = Device Filesave Void
38 ifneq ($(strip $(HAVE_ASMIO)),)
39 SUBDIRS += ac97
40 SUBDIRS += CMI8738
41 SUBDIRS += HDAudio
42 SUBDIRS += EMU10kx
43 endif
45 ifneq ($(strip $(HAVE_OSS)),)
46 SUBDIRS += AROS
47 endif
49 ifneq ($(strip $(HAVE_OPENPCI)),)
50 SUBDIRS += EMU10kx
51 endif
53 ifeq ($(strip $(host)),powerpc-unknown-amigaos)
54 SUBDIRS += EMU10kx
55 endif
57 all:
58 @for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
60 install:
61 @for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
63 clean:
64 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
66 distclean: clean
67 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
68 $(RM) Makefile
70 maintainer-clean: distclean
71 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
73 bindist:
74 @for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
75 $(INSTALL) -d $(DRIVERDIR)
76 for d in $(SUBDIRS) Paula Toccata Void Wavetools; do \
77 cd $(srcdir) && find $${d} -type f -and -not -path '*CVS*' \
78 -exec $(INSTALL_DATA) -D {} $(DRIVERDIR)/{} \; ; \
79 done
82 # Auto-remake autoconf stuff
83 ########################################
85 Makefile: Makefile.in ../config.status
86 (cd .. && ./config.status)
90 # Rules
91 ########################################