2 # Makefile.in for the AHI-Handler DOS device.
8 ########################################
12 top_srcdir
= @top_srcdir@
16 DOSDRVDIR
= ${DISTDIR}/User
/Devs
/DOSDrivers
17 LDIR
= ${DISTDIR}/User
/L
22 STRIP
= @STRIP@ @STRIPFLAGS@
25 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
26 INSTALL_DATA
= @INSTALL_DATA@
29 CFLAGS
= @CFLAGS@ @CFLAG_RESIDENT@
30 LDFLAGS
= @LDFLAGS@ @LDFLAG_RESIDENT@
38 ########################################
41 EXECUTABLE
= AHI-Handler
46 ########################################
48 .PHONY
: all clean distclean maintainer-clean
install revup bindist
53 $(RM
) $(EXECUTABLE
) version.h
*.o Makefile.dep
58 maintainer-clean
: distclean
61 $(INSTALL_PROGRAM
) $(EXECUTABLE
) $(PREFIX
)/L
/$(EXECUTABLE
)
64 @rev
=`cat $(srcdir)/version.rev` && echo
`expr $$rev + 1` > $(srcdir)/version.rev
65 @date
+%d.
%m.
%y
> $(srcdir)/version.date
66 @echo
-n
"New revision: "
67 @cat
$(srcdir)/version.rev
70 $(INSTALL
) -d
$(LDIR
) $(DOSDRVDIR
)
71 $(INSTALL_PROGRAM
) $(EXECUTABLE
) $(LDIR
)/$(EXECUTABLE
)
72 $(STRIP
) $(LDIR
)/$(EXECUTABLE
)
73 $(INSTALL_DATA
) ${srcdir}/AUDIO
$(DOSDRVDIR
)
74 $(INSTALL_DATA
) ${srcdir}/AUDIO.
info $(DOSDRVDIR
)
75 $(INSTALL_DATA
) ${srcdir}/AUDIO.MWB.
info $(DOSDRVDIR
)
81 # Auto-remake autoconf stuff
82 ########################################
84 Makefile
: Makefile.in ..
/config.status
85 (cd ..
&& .
/config.status
)
91 ########################################
93 $(EXECUTABLE
): $(OBJECTS
)
94 $(CC
) $(LDFLAGS
) $^
$(LIBS
) -o
$@
97 version.h
: version.rev version.date
99 @ver
=`cat $(top_srcdir)/version.ver` \
100 rev
=`cat $(srcdir)/version.rev` \
101 date
=`cat $(srcdir)/version.date` && \
102 echo
"#define VERSION $$ver" > $@
&& \
103 echo
"#define REVISION $$rev" >> $@
&& \
104 echo
"#define VERS \"$$ver.$$rev ($$date)\"" >> $@
108 ########################################
110 SOURCES
= $(wildcard $(srcdir)/*.c
)
111 HEADERS
= $(wildcard $(srcdir)/*.h
)
113 #DEPENDENCIES = $(SOURCES) $(HEADERS)
121 Makefile.dep
: $(DEPENDENCIES
) version.h
123 -@
$(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$(SOURCES
) > $@
125 -include Makefile.dep