Call CloseDevice() before DeleteIORequest(), and don't call
[AROS.git] / workbench / devs / AHI / AddAudioModes / Makefile.in
blob0a9302b65b263226f6517f1722a65c9bd1f539e5
2 # Makefile.in for the AddAudioModes program
7 # Autoconfig stuff
8 ########################################
10 @SET_MAKE@
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 PREFIX = @prefix@
15 DISTDIR = @DISTDIR@
16 CDIR = ${DISTDIR}/User/C
18 build_os = @build_os@
20 CC = @CC@
21 STRIP = @STRIP@ @STRIPFLAGS@
23 INSTALL = @INSTALL@
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@
26 CPPFLAGS = @CPPFLAGS@
27 CFLAGS = @CFLAGS@
28 LDFLAGS = @LDFLAGS@
29 LIBS = @LIBS@
31 VPATH = @srcdir@
35 # Files
36 ########################################
38 OBJECTS = AddAudioModes.o
39 EXECUTABLE = AddAudioModes
43 # Targets
44 ########################################
46 .PHONY: all clean distclean maintainer-clean install revup bindist
48 all: $(EXECUTABLE)
50 clean:
51 $(RM) $(EXECUTABLE) version.h *.o Makefile.dep
53 distclean: clean
54 $(RM) Makefile
56 maintainer-clean: distclean
58 install: all
59 $(INSTALL) -d $(PREFIX)/C
60 $(INSTALL_PROGRAM) $(EXECUTABLE) $(PREFIX)/C/$(EXECUTABLE)
62 revup:
63 @rev=`cat $(srcdir)/version.rev` && echo `expr $$rev + 1` > $(srcdir)/version.rev
64 @date +%d.%m.%y > $(srcdir)/version.date
65 @echo -n "New revision: "
66 @cat $(srcdir)/version.rev
68 bindist: all
69 $(INSTALL) -d $(CDIR)
70 $(INSTALL_PROGRAM) $(EXECUTABLE) $(CDIR)/$(EXECUTABLE)
71 $(STRIP) $(CDIR)/$(EXECUTABLE)
77 # Auto-remake autoconf stuff
78 ########################################
80 Makefile: Makefile.in ../config.status
81 (cd .. && ./config.status)
86 # Rules
87 ########################################
89 $(EXECUTABLE): $(OBJECTS)
90 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
93 version.h: version.rev version.date
94 @echo Creating $@
95 @ver=`cat $(top_srcdir)/version.ver` \
96 rev=`cat $(srcdir)/version.rev` \
97 date=`cat $(srcdir)/version.date` && \
98 echo "#define VERSION $$ver" > $@ && \
99 echo "#define REVISION $$rev" >> $@ && \
100 echo "#define VERS \"$$ver.$$rev ($$date)\"" >> $@
103 # Dependencies
104 ########################################
106 SOURCES = $(wildcard $(srcdir)/*.c)
107 HEADERS = $(wildcard $(srcdir)/*.h)
109 #DEPENDENCIES = $(SOURCES) $(HEADERS)
111 .PHONY: depend
113 depend:
114 $(RM) Makefile.dep
115 $(MAKE) Makefile.dep
117 Makefile.dep: $(DEPENDENCIES) version.h
118 @echo Making $@
119 -@$(CC) $(CPPFLAGS) $(CFLAGS) -MM $(SOURCES) > $@
121 include Makefile.dep