2 # Makefile.in for the AddAudioModes program
8 ########################################
12 top_srcdir
= @top_srcdir@
16 CDIR
= ${DISTDIR}/User
/C
21 STRIP
= @STRIP@ @STRIPFLAGS@
24 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
36 ########################################
38 OBJECTS
= AddAudioModes.o
39 EXECUTABLE
= AddAudioModes
44 ########################################
46 .PHONY
: all clean distclean maintainer-clean
install revup bindist
51 $(RM
) $(EXECUTABLE
) version.h
*.o Makefile.dep
56 maintainer-clean
: distclean
59 $(INSTALL
) -d
$(PREFIX
)/C
60 $(INSTALL_PROGRAM
) $(EXECUTABLE
) $(PREFIX
)/C
/$(EXECUTABLE
)
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
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
)
87 ########################################
89 $(EXECUTABLE
): $(OBJECTS
)
90 $(CC
) $(LDFLAGS
) $^
$(LIBS
) -o
$@
93 version.h
: version.rev version.date
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)\"" >> $@
104 ########################################
106 SOURCES
= $(wildcard $(srcdir)/*.c
)
107 HEADERS
= $(wildcard $(srcdir)/*.h
)
109 #DEPENDENCIES = $(SOURCES) $(HEADERS)
117 Makefile.dep
: $(DEPENDENCIES
) version.h
119 -@
$(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$(SOURCES
) > $@
121 -include Makefile.dep