Call CloseDevice() before DeleteIORequest(), and don't call
[AROS.git] / workbench / devs / AHI / Makefile.in
blobf7dbdff603016c0ad0648d105c7c59ad55984892
2 # Makefile.in for the AHI sound system
6 # Autoconfig stuff
7 ########################################
9 @SET_MAKE@
11 top_srcdir = @top_srcdir@
12 srcdir = @srcdir@
13 DISTDIR = @DISTDIR@
14 CATDIR = ${DISTDIR}/User/Catalogs
15 CATSRCDIR = ${DISTDIR}/Developer/Translations
17 host_cpu = @host_cpu@
18 host_alias = @host_alias@
20 INSTALL = @INSTALL@
21 INSTALL_DATA = @INSTALL_DATA@
22 LHA = @LHA@
24 CPPFLAGS = @CPPFLAGS@
25 CFLAGS = @CFLAGS@
26 LDFLAGS = @LDFLAGS@
29 VPATH = @srcdir@
32 VERSION = $(shell cat ${top_srcdir}/version.ver)
33 REVISION = $(shell cat $(top_srcdir)/version.rev)
35 USRARCHIVE = $(host_alias)-ahiusr-$(VERSION).$(REVISION).lha
36 USRREADME = $(host_alias)-ahiusr-$(VERSION).$(REVISION).readme
37 DEVARCHIVE = $(host_alias)-ahidev-$(VERSION).$(REVISION).lha
38 DEVREADME = $(host_alias)-ahidev-$(VERSION).$(REVISION).readme
41 # Targets
42 ########################################
44 .PHONY: all clean distclean maintainer-clean bindist revup
46 SUBDIRS = AHI AddAudioModes Device Drivers Examples Include
48 ifneq (@CFLAG_RESIDENT@,)
49 SUBDIRS += AHI-Handler
50 endif
52 all:
53 @cd Include && $(MAKE) gcc-include
54 @for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
56 install:
57 @for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
59 clean:
60 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
61 $(RM) $(USRARCHIVE) $(USRREADME) $(DEVARCHIVE) $(DEVREADME)
63 distclean:
64 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
65 $(RM) $(USRARCHIVE) $(USRREADME) $(DEVARCHIVE) $(DEVREADME) \
66 config.log config.cache config.status config.h\
67 stamp-h stamp-h.in Makefile
69 maintainer-clean:
70 -@for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@); done
71 $(RM) $(USRARCHIVE) $(USRREADME) $(DEVARCHIVE) $(DEVREADME) \
72 config.log config.cache config.status config.h\
73 stamp-h stamp-h.in Makefile \
74 configure config.h.in
76 bindist:
77 $(RM) -r $(DISTDIR)
78 $(INSTALL) -d $(DISTDIR)
79 $(INSTALL_DATA) ${srcdir}/COPYING $(DISTDIR)
80 $(INSTALL_DATA) ${srcdir}/COPYING.LIB $(DISTDIR)
81 $(INSTALL_DATA) ${srcdir}/COPYING.DRIVERS $(DISTDIR)
82 $(INSTALL_DATA) ${srcdir}/ChangeLog $(DISTDIR)
84 $(INSTALL) -d $(CATDIR) $(CATSRCDIR)
85 $(INSTALL_DATA) ${srcdir}/README.ATO $(CATDIR)
86 $(INSTALL_DATA) ${srcdir}/README.ATO $(CATSRCDIR)
87 $(INSTALL_DATA) ${srcdir}/README.TRANSLATIONS $(CATDIR)
88 $(INSTALL_DATA) ${srcdir}/README.TRANSLATIONS $(CATSRCDIR)
90 cd Include && $(MAKE) gcc-include
91 for i in $(SUBDIRS); do (cd $$i && $(MAKE) $(MFLAGS) $@) || exit; done
93 -$(RM) $(USRARCHIVE) $(DEVARCHIVE)
95 pwd=`pwd` bn=`basename $(DISTDIR)` && \
96 ( cd $(DISTDIR)/.. && $(LHA) $${pwd}/$(DEVARCHIVE) \
97 $${bn}/ahidev* $${bn}/ChangeLog $${bn}/COPYING* $${bn}/Developer )
98 cp $(DISTDIR)/ahidev.readme $(DEVREADME)
100 pwd=`pwd` bn=`basename $(DISTDIR)` && \
101 ( cd $(DISTDIR)/.. && $(LHA) $${pwd}/$(USRARCHIVE) \
102 $${bn}/ahiusr* $${bn}/ChangeLog $${bn}/COPYING* $${bn}/User )
103 cp $(DISTDIR)/ahiusr.readme $(USRREADME)
105 $(RM) -r $(DISTDIR)
107 revup:
108 @rev=`cat $(srcdir)/version.rev` && echo `expr $$rev + 1` > $(srcdir)/version.rev
109 @date +%d.%m.%y > $(srcdir)/version.date
110 @echo -n "New revision: "
111 @cat $(srcdir)/version.rev
114 # Auto-remake autoconf stuff
115 ########################################
117 ${srcdir}/configure: configure.in
118 cd ${srcdir} && autoconf
120 # autoheader might not change config.h.in, so touch a stamp file.
121 ${srcdir}/config.h.in: stamp-h.in
122 ${srcdir}/stamp-h.in: configure.in
123 cd ${srcdir} && autoheader
124 echo timestamp > ${srcdir}/stamp-h.in
126 config.h: stamp-h
127 stamp-h: config.h.in config.status
128 ./config.status
130 Makefile: Makefile.in config.status
131 ./config.status
133 config.status: configure
134 ./config.status --recheck